Skip to content

Commit

Permalink
refactor: remove app.json and use generic "App" component name
Browse files Browse the repository at this point in the history
  • Loading branch information
Harjot1Singh committed Jan 10, 2022
1 parent 5260cbe commit b2d5faa
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public class MainActivity extends ReactActivity {
*/
@Override
protected String getMainComponentName() {
return "Mobile";
return "App";
}
}
4 changes: 0 additions & 4 deletions app.json

This file was deleted.

3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import 'react-native-gesture-handler'
import { AppRegistry } from 'react-native'
import { enableScreens } from 'react-native-screens'

import { name as appName } from './app.json'
import App from './src/App'

enableScreens()

AppRegistry.registerComponent( appName, () => App )
AppRegistry.registerComponent( 'App', () => App )
2 changes: 1 addition & 1 deletion ios/Mobile/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"Mobile"
moduleName:@"App"
initialProperties:nil];

if (@available(iOS 13.0, *)) {
Expand Down

0 comments on commit b2d5faa

Please sign in to comment.