Skip to content

Commit 2076cb2

Browse files
Revert "feat(example): add google maps screen (#1146)"
This reverts commit 802132d.
1 parent 802132d commit 2076cb2

File tree

9 files changed

+2
-76
lines changed

9 files changed

+2
-76
lines changed

examples/default/android/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,5 @@
2222
<category android:name="android.intent.category.LAUNCHER" />
2323
</intent-filter>
2424
</activity>
25-
<meta-data
26-
android:name="com.google.android.geo.API_KEY"
27-
android:value="@string/google_maps_key" />
2825
</application>
2926
</manifest>
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
<resources>
22
<string name="app_name">Instabug - React Native</string>
3-
<string name="google_maps_key" translatable="false">API Key</string>
4-
53
</resources>

examples/default/ios/InstabugExample/AppDelegate.mm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#import "AppDelegate.h"
2-
#import <GoogleMaps/GoogleMaps.h>
32

43
#import <React/RCTBundleURLProvider.h>
54

@@ -11,7 +10,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
1110
// You can add your custom initial props in the dictionary below.
1211
// They will be passed down to the ViewController used by React Native.
1312
self.initialProps = @{};
14-
[GMSServices provideAPIKey:@"API KEY"]; // use the api key obtained from Google Console
1513

1614
return [super application:application didFinishLaunchingWithOptions:launchOptions];
1715
}

examples/default/ios/Podfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
require_relative '../node_modules/react-native/scripts/react_native_pods'
2-
32
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
43

5-
platform :ios, '13.4'
4+
platform :ios, min_ios_version_supported
65
prepare_react_native_project!
76

87
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
@@ -24,8 +23,7 @@ end
2423

2524
target 'InstabugExample' do
2625
config = use_native_modules!
27-
rn_maps_path = '../node_modules/react-native-maps'
28-
pod 'react-native-google-maps', :path => rn_maps_path
26+
2927
# Flags change depending on the env values.
3028
flags = get_default_flags()
3129

examples/default/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"react": "18.2.0",
2020
"react-native": "0.72.3",
2121
"react-native-gesture-handler": "^2.13.4",
22-
"react-native-maps": "^1.10.3",
2322
"react-native-reanimated": "^3.5.4",
2423
"react-native-safe-area-context": "^4.5.3",
2524
"react-native-screens": "^3.20.0",

examples/default/src/navigation/HomeStack.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { FlatListScreen } from '../screens/user-steps/FlatListScreen';
1515
import { ComplexViewsScreen } from '../screens/user-steps/ComplexViewsScreen';
1616
import { SectionListScreen } from '../screens/user-steps/SectionListScreen';
1717
import { GesturesScreen } from '../screens/user-steps/GesturesScreen';
18-
import { GoogleMapsScreen } from '../screens/user-steps/GoogleMapsScreen';
1918

2019
export type HomeStackParamList = {
2120
Home: undefined;
@@ -31,7 +30,6 @@ export type HomeStackParamList = {
3130
ComplexViews: undefined;
3231
SectionList: undefined;
3332
Gestures: undefined;
34-
GoogleMapsScreen: undefined;
3533
};
3634

3735
const HomeStack = createNativeStackNavigator<HomeStackParamList>();
@@ -62,11 +60,6 @@ export const HomeStackNavigator: React.FC = () => {
6260
component={UserStepsScreen}
6361
options={{ title: 'User Steps' }}
6462
/>
65-
<HomeStack.Screen
66-
name="GoogleMapsScreen"
67-
component={GoogleMapsScreen}
68-
options={{ title: 'Google Map screen' }}
69-
/>
7063
<HomeStack.Screen
7164
name="BasicComponents"
7265
component={BasicComponentsScreen}

examples/default/src/screens/user-steps/GoogleMapsScreen.tsx

Lines changed: 0 additions & 44 deletions
This file was deleted.

examples/default/src/screens/user-steps/UserStepsScreen.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export const UserStepsScreen: React.FC<NativeStackScreenProps<HomeStackParamList
1616
<ListTile title="Section List" onPress={() => navigation.navigate('SectionList')} />
1717
<ListTile title="Complex Views" onPress={() => navigation.navigate('ComplexViews')} />
1818
<ListTile title="Gestures" onPress={() => navigation.navigate('Gestures')} />
19-
<ListTile title="Google Map" onPress={() => navigation.navigate('GoogleMapsScreen')} />
2019
</Screen>
2120
);
2221
};

examples/default/yarn.lock

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2849,11 +2849,6 @@
28492849
dependencies:
28502850
"@babel/types" "^7.20.7"
28512851

2852-
"@types/geojson@^7946.0.13":
2853-
version "7946.0.14"
2854-
resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.14.tgz#319b63ad6df705ee2a65a73ef042c8271e696613"
2855-
integrity sha512-WCfD5Ht3ZesJUsONdhvm84dmzWOiOzOAqOncN0++w0lBw1o8OuDNJF2McvvCef/yBqb/HYRahp1BYtODFQ8bRg==
2856-
28572852
"@types/graceful-fs@^4.1.3":
28582853
version "4.1.6"
28592854
resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.6.tgz#e14b2576a1c25026b7f02ede1de3b84c3a1efeae"
@@ -6519,13 +6514,6 @@ react-native-gesture-handler@^2.13.4:
65196514
lodash "^4.17.21"
65206515
prop-types "^15.7.2"
65216516

6522-
react-native-maps@^1.10.3:
6523-
version "1.10.3"
6524-
resolved "https://registry.yarnpkg.com/react-native-maps/-/react-native-maps-1.10.3.tgz#a669ee3a8baa01d30c5c7af7bdc498428d0e8284"
6525-
integrity sha512-P8/Viq5vgW9FRhvfDFQHxq02cZUcDJu6VbBZar7c/voGDbD5nrTIA0qlpiUAmrs1ikd8+7S4QjXQlorppBBMvA==
6526-
dependencies:
6527-
"@types/geojson" "^7946.0.13"
6528-
65296517
react-native-reanimated@^3.5.4:
65306518
version "3.5.4"
65316519
resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-3.5.4.tgz#a6c2b0c43b6dad246f5d276213974afedb8e3fc7"

0 commit comments

Comments
 (0)