問題タブ [react-navigation]

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 投票する
4 に答える
20951 参照

javascript - React Navigation - 未定義のプロパティ 'navigate' を読み取れません

反応ナビゲーションを起動して実行しようとしましたが、ナビゲーション項目を独自のコンポーネントに移動しようとすると問題が発生します。

HomeScreen.js

次に、NavButton コンポーネントで、新しい画面に移動しようとします。

しかし、「未定義のプロパティ 'navigate' を読み取れません。

これも私の Router.js ファイルです。

0 投票する
10 に答える
79347 参照

react-native - React-Navigation with Login Screen

I am trying to use react-navigation to create an initial LOGIN screen that has no tabbar and header, and once the user has been successfully authenticated will navigate to another screen called LISTRECORD which has a tabbar, header and no back button option. Anyone has experience in this and can share?

In summary, what I'm trying to achieve with react-navigation is described below...

Screen 1: Login Screen (No Header & Tabbar)
Authenticated...
Screen 2: LISTRECORD (Header, Tabbar and No Back Button)
The tabbar contains other tabs too for navigation to Screen 3, Screen 4...