一、IOS
1、项目启动
$ react-native run-ios
2、配置项目名称
# 项目名称:MyRnApp
# /index.ios.js 中注册的组件名:
AppRegistry.registerComponent('BlinkApp', () => BlinkApp);
## /ios/MyRnApp/AppDelegate.m 文件中
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"BlinkApp" // 这里 必须与 /index.ios.js 中 注册的组件名称一致!!
initialProperties:nil
launchOptions:launchOptions];