在React-Native中,我想在'registered_name'下面更改:
AppRegistry.registerComponent('registered_name', () => test);
我应该在Android和iOS文件中更改此名称的位置?
谢谢.
更改班级名称
class MyAppName extends React.Component{
Run Code Online (Sandbox Code Playgroud)
和AppRegistry
AppRegistry.registerComponent('MyAppName', () => MyAppName);
Run Code Online (Sandbox Code Playgroud)
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"MyAppName"
initialProperties:nil
launchOptions:launchOptions];
Run Code Online (Sandbox Code Playgroud)
mReactRootView.startReactApplication(mReactInstanceManager, "MyAppName", null);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
771 次 |
| 最近记录: |