Skip to content

Commit 5de2f44

Browse files
chore: update README and remove API keys
1 parent 6a07901 commit 5de2f44

File tree

4 files changed

+41
-3
lines changed

4 files changed

+41
-3
lines changed

demo/MapAndLocation/README.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## React Native Map And Location
2+
3+
This is a straightforward cross-platform mobile application built with React Native, compatible with both iOS and Android devices. This example use [react-native-maps](https://github.com/react-native-maps/react-native-maps) library
4+
5+
**Video Demo**
6+
7+
https://drive.google.com/file/d/1VwhQiRi3HygJctODty6-lHCFOK1YhZTo/view
8+
9+
## 📡 Features:
10+
11+
### 1. **Map and Location**
12+
Showing Map and current Location of the phone on the Map. With simulated location changes, you can witness the seamless transition as you move from one point to another.
13+
14+
### 2. **Drawing Zone or Line**
15+
Allows you to unleash your creativity by drawing zones or lines directly onto the map. Whether you're marking out boundaries or planning routes, the intuitive interface makes it simple and intuitive.
16+
17+
### 3. **Route**
18+
Showcases the ability to generate routes between two predefined locations, providing you with guidance from one destination to another.
19+
20+
## 🚀 Getting Started:
21+
22+
### Pre-actions:
23+
Check out the Installation process for [react-native-maps](https://github.com/react-native-maps/react-native-maps/blob/master/docs/installation.md#installation) first and acquire the API keys, and update them into:
24+
- android/app/src/main/AndroidManifest.xml
25+
- android/app/src/main/res/values/google_maps_api.xml
26+
- ios/DemoMap/AppDelegate.mm
27+
28+
1. Clone this repository to your local machine.
29+
2. Install dependencies using your preferred package manager (e.g., `npm install` or `yarn install`).
30+
3. Run the application on your preferred platform (iOS/Android) using `yarn android` or `yarn ios`.
31+
32+
Explore the codebase, experiment with configurations, and use this demo as a starting point for incorporating beacon technology into your own React Native applications.
33+
34+
## 📚 Resources:
35+
36+
- [React Native Maps](https://github.com/react-native-maps/react-native-maps)
37+
38+
Feel free to reach out to the community for any questions or share your enhancements to this demo. Happy coding! 📡

demo/MapAndLocation/android/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626

2727
<meta-data
2828
android:name="com.google.android.geo.API_KEY"
29-
android:value="AIzaSyBRjtH_faUrIuhiKUpR3Fi9KQX38s1-bh8"/>
29+
android:value="MAP_API_KEY_HERE"/>
3030
</application>
3131
</manifest>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<resources>
2-
<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">AIzaSyBRjtH_faUrIuhiKUpR3Fi9KQX38s1-bh8</string>
2+
<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">MAP_API_KEY_HERE</string>
33
</resources>
44

demo/MapAndLocation/ios/DemoMap/AppDelegate.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
1111
// You can add your custom initial props in the dictionary below.
1212
// They will be passed down to the ViewController used by React Native.
1313
self.initialProps = @{};
14-
[GMSServices provideAPIKey:@"AIzaSyCQkbwBe1-bu2u1UbAbyt5A_VPVLv31Sb0"]; // add this line using the api key obtained from Google Console
14+
[GMSServices provideAPIKey:@"MAP_API_KEY_HERE"]; // add this line using the api key obtained from Google Console
1515
return [super application:application didFinishLaunchingWithOptions:launchOptions];
1616
}
1717

0 commit comments

Comments
 (0)