Skip to content

Commit cf12aba

Browse files
committed
customized google map style, added animations
1 parent 0bc84be commit cf12aba

File tree

9 files changed

+743
-38
lines changed

9 files changed

+743
-38
lines changed

App.js

Lines changed: 688 additions & 25 deletions
Large diffs are not rendered by default.

android/app/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,18 @@ android {
137137
}
138138

139139
dependencies {
140-
compile project(':react-native-maps')
140+
implementation project(':react-native-maps')
141141
implementation fileTree(dir: "libs", include: ["*.jar"])
142142
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
143143
implementation "com.facebook.react:react-native:+" // From node_modules
144144

145-
compile(project(':react-native-maps')){
145+
implementation(project(':react-native-maps')){
146146
exclude group: 'com.google.android.gms', module: 'play-services-base'
147147
exclude group: 'com.google.android.gms', module: 'play-services-maps'
148148
}
149-
compile 'com.google.android.gms:play-services-base:15.0.1'
150-
compile 'com.google.android.gms:play-services-maps:15.0.1'
149+
implementation 'com.google.android.gms:play-services-base:15.0.1'
150+
implementation 'com.google.android.gms:play-services-maps:15.0.1'
151+
implementation project(':react-native-linear-gradient')
151152

152153
}
153154

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<!-- You will only need to add this meta-data tag, but make sure it's a child of application -->
1515
<meta-data
1616
android:name="com.google.android.geo.API_KEY"
17-
android:value="AIzaSyBLytYhLUD57b4v8MO-0vrWTQzNxwxSkaY"/>
17+
android:value="AIzaSyBK2aP_D6peqMMj9CV_l4K07mqw_XDqRlQ"/>
1818

1919
<activity
2020
android:name=".MainActivity"

android/app/src/main/java/com/mymapapp/MainApplication.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.facebook.react.ReactPackage;
99
import com.facebook.react.shell.MainReactPackage;
1010
import com.facebook.soloader.SoLoader;
11+
import com.BV.LinearGradient.LinearGradientPackage;
1112

1213
import java.util.Arrays;
1314
import java.util.List;
@@ -24,6 +25,7 @@ public boolean getUseDeveloperSupport() {
2425
protected List<ReactPackage> getPackages() {
2526
return Arrays.<ReactPackage>asList(
2627
new MainReactPackage(),
28+
new LinearGradientPackage(),
2729
new MapsPackage()
2830
);
2931
}

android/settings.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
rootProject.name = 'myMapApp'
2+
3+
include ':react-native-linear-gradient'
4+
project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-linear-gradient/android')
5+
26
include ':react-native-maps'
37
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
48

1.12 KB
Loading
361 Bytes
Loading

package-lock.json

Lines changed: 40 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"@babel/runtime": "^7.1.2",
1111
"react": "16.5.0",
1212
"react-native": "0.57.1",
13-
"react-native-maps": "^0.21.0"
13+
"react-native-linear-gradient": "^2.4.2",
14+
"react-native-maps": "^0.21.0",
15+
"react-native-maps-directions": "^1.6.0"
1416
},
1517
"devDependencies": {
1618
"babel-jest": "23.6.0",

0 commit comments

Comments
 (0)