react-navigation / react-navigation

Routing and navigation for your React Native apps
https://reactnavigation.org
23.55k stars 5.03k forks source link

screen is not defined #8259

Closed Lyd1223 closed 4 years ago

Lyd1223 commented 4 years ago

Current Behavior I want to navigate to a nesting navigator. I try to navigate from scanPage to equimentInfo or from warnData to workOrderDetail, it will show screen is not defined. But if I press the bottom tabs, and then I can navigate to that screen, which I want to go.

bottomNavigator home(Stack.Navigator) overView(screen) scanPage (screen) data(Stack.Navigator) assets(screen) equimetInfo(Tab.Navigator) warnData(screen) workOrder(Stack.Navigator) workOrderDetail(screen) workOrderLog(screen)

Expected Behavior

navigate to the screen

How to reproduce

this.props.navigation.navigate('WorkOrder', {screen: 'WorkOrderPage', params: {type:typeInfo, operatorType: 'add', warnInfo}})

Your Environment

software version
iOS or Android 13.4.1
@react-navigation/native 5.1.4
@react-navigation/bottom-tabs 5.2.5
react-native-screens 2.4.0
react-native 0.62.0
expo N/A
node 10.16.3
npm or yarn npm
github-actions[bot] commented 4 years ago

The versions mentioned in the issue for the following packages differ from the latest versions on npm:

Can you verify that the issue still exists after upgrading to the latest versions of these packages?

github-actions[bot] commented 4 years ago

Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on snack.expo.io. If it's not possible to repro it on snack.expo.io, then you can also provide the repro in a GitHub repository.

Lyd1223 commented 4 years ago

WechatIMG18 This occur error, please help me, how can I fix this problem?

satya164 commented 4 years ago

Closing since you didn't provide a runnable repro. Please open a new issue if you have a runnable repro.