Skip to content

Commit 840601b

Browse files
committed
add react-native-restart to gradle
1 parent e5bc421 commit 840601b

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ dependencies {
199199
compile project(':react-native-maps')
200200
compile project(':react-native-network-info')
201201
compile project(':react-native-onesignal')
202+
compile project(':react-native-restart')
202203
compile project(':react-native-vector-icons')
203204
compile project(':react-native-view-shot')
204205
// this is for react-native itself

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
// keep these sorted alphabetically
99
import com.airbnb.android.react.maps.MapsPackage;
10+
import com.avishayil.rnrestart.ReactNativeRestartPackage;
1011
import com.bugsnag.BugsnagReactNative;
1112
import com.BV.LinearGradient.LinearGradientPackage;
1213
import com.facebook.react.ReactApplication;
@@ -49,6 +50,7 @@ protected List<ReactPackage> getPackages() {
4950
new LinearGradientPackage(),
5051
new MapsPackage(),
5152
new ReactNativeOneSignalPackage(),
53+
new ReactNativeRestartPackage(),
5254
new RNDeviceInfo(),
5355
new RNNetworkInfoPackage(),
5456
new RNViewShotPackage(),

android/settings.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ project(':react-native-network-info').projectDir = new File(rootProject.projectD
2929
include ':react-native-onesignal'
3030
project(':react-native-onesignal').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-onesignal/android')
3131

32+
include ':react-native-restart'
33+
project(':react-native-restart').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-restart/android')
34+
3235
include ':react-native-vector-icons'
3336
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
3437

0 commit comments

Comments
 (0)