From dff9c100f39dd2e111f236d4abb4f6c4e9d619f2 Mon Sep 17 00:00:00 2001 From: 7c00 Date: Mon, 29 Aug 2022 11:50:46 +0800 Subject: [PATCH] Fix entry name --- .../app/src/main/java/com/rnamapgeolocation/MainActivity.java | 2 +- index.js | 2 +- ios/RNAMapGeolocation/AppDelegate.mm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/app/src/main/java/com/rnamapgeolocation/MainActivity.java b/android/app/src/main/java/com/rnamapgeolocation/MainActivity.java index e49edb7..fb2902e 100644 --- a/android/app/src/main/java/com/rnamapgeolocation/MainActivity.java +++ b/android/app/src/main/java/com/rnamapgeolocation/MainActivity.java @@ -12,7 +12,7 @@ public class MainActivity extends ReactActivity { */ @Override protected String getMainComponentName() { - return "RNAMapGeolocation"; + return "example"; } /** diff --git a/index.js b/index.js index 4fc0314..a6bfcf9 100644 --- a/index.js +++ b/index.js @@ -140,4 +140,4 @@ class App extends React.Component { } } -AppRegistry.registerComponent("RNAMapGeolocation", () => App); +AppRegistry.registerComponent("example", () => App); diff --git a/ios/RNAMapGeolocation/AppDelegate.mm b/ios/RNAMapGeolocation/AppDelegate.mm index 4c9e21e..1a05b82 100644 --- a/ios/RNAMapGeolocation/AppDelegate.mm +++ b/ios/RNAMapGeolocation/AppDelegate.mm @@ -44,7 +44,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( #endif NSDictionary *initProps = [self prepareInitialProps]; - UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"RNAMapGeolocation", initProps); + UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"example", initProps); if (@available(iOS 13.0, *)) { rootView.backgroundColor = [UIColor systemBackgroundColor];