問題タブ [ionic-react]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
2 に答える
1874 参照

reactjs - ボタンから表示されるように IonPopover を動的に配置する方法は?

ボタンがクリックされたときにボタンの下に表示されるようにポップオーバーを配置しようとしています。この例は、Ion のドキュメント ページにあります。ここに画像の説明を入力

ただし、このコードは React では提供されておらず、Angular でのみ提供されています。

現在、私のコードは次のようになっています

ポップオーバーは、その上のボタンで切り替えられます。ボタンが押されると、ボタンの上ではなく、ページの中央にポップオーバーが表示されます。ポップオーバーがボタンに関連付けられて表示されるようにするにはどうすればよいですか? (画像のように)

ありがとう

0 投票する
1 に答える
280 参照

ionic-framework - Global toolbar in Ionic 4 (React) overlapping IonContent

I am just getting to grips with Ionic from a React and Flutter background.

I am trying to achieve a global navigation top bar using Ionic 4 react. The only documentation that looks like it might work is the IonHeader.

I have tried to add this to my root App.tsx component but this does not seem to work as expected. The height of the Toolbar component is not recognised by the other components. I.e., the toolbar overlaps the page content.

Attempt at a global Toolbar from App.tsx:

Dashboard A Component:

The only workaround I can see is to have a navigation bar that I import and use in the IonHeader of each page but things seems really clunky. Is there a way to have one reference to the toolbar in App.tsx? I appreciate there is the obvious CSS hack to pad but I do not want to go down that route if there is a "proper" way of doing thins.

Thanks!

0 投票する
0 に答える
110 参照

reactjs - Android 5.1でIonic 4が白い画面に反応する

クロム開発者エラー1

コンデンサーによるビルド apkは android 7 で機能しますが、android 4.4、5.1、および 6 では白い画面が表示されます