mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-06-19 10:18:36 +08:00
committed by
Adam Miskiewicz
parent
04b5578c14
commit
8772e5f373
@@ -28,7 +28,7 @@ const MyApp = StackRouter({ // This is the RouteConfig:
|
||||
screen: ProfileScreen,
|
||||
path: 'profile/:name',
|
||||
},
|
||||
Settings {
|
||||
Settings: {
|
||||
// This can be handy to lazily require a screen:
|
||||
getScreen: () => require('Settings').default,
|
||||
// Note: Child navigators cannot be configured using getScreen because
|
||||
|
||||
Reference in New Issue
Block a user