本文整理汇总了TypeScript中react-native-navigation.Navigation.events方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Navigation.events方法的具体用法?TypeScript Navigation.events怎么用?TypeScript Navigation.events使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类react-native-navigation.Navigation
的用法示例。
在下文中一共展示了Navigation.events方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: require
YellowBox.ignoreWarnings([
'Required dispatch_sync to load constants for CodePush. This may lead to deadlocks',
'RCTBridge required dispatch_sync to load CodePush. This may lead to deadlocks',
]);
// Include devtools
if (__DEV__) {
const { connectToDevTools } = require('mobx-devtools/lib/mobxDevtoolsBackend.js');
connectToDevTools({ host: 'localhost', port: '8098' });
// XMLHttpRequest = (global as any).originalXMLHttpRequest || (global as any).XMLHttpRequest;
}
// Enable LayoutAnimation on android
if (Platform.OS === 'android') {
UIManager.setLayoutAnimationEnabledExperimental(true);
}
// Register screens
Screens.forEach((ScreenComponent, key) =>
Navigation.registerComponent(key, () => ScreenComponent));
// Start application
Navigation.events().registerAppLaunchedListener(() => {
// Hydrate store and start app
Store.hydrate()
.then(theme.update)
.then(startApp);
});