Skip to content

Commit 1bf3cb4

Browse files
committed
add react-native-restart to gradle
1 parent 4c3fb94 commit 1bf3cb4

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
@@ -194,6 +194,7 @@ dependencies {
194194
compile project(':react-native-maps')
195195
compile project(':react-native-network-info')
196196
compile project(':react-native-onesignal')
197+
compile project(':react-native-restart')
197198
compile project(':react-native-vector-icons')
198199
compile project(':react-native-view-shot')
199200
// 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;
@@ -56,6 +57,7 @@ protected List<ReactPackage> getPackages() {
5657
new LinearGradientPackage(),
5758
new MapsPackage(),
5859
new ReactNativeOneSignalPackage(),
60+
new ReactNativeRestartPackage(),
5961
new RNDeviceInfo(),
6062
new RNNetworkInfoPackage(),
6163
new RNViewShotPackage(),

android/settings.gradle

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

35+
include ':react-native-restart'
36+
project(':react-native-restart').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-restart/android')
37+
3538
include ':react-native-vector-icons'
3639
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
3740

0 commit comments

Comments
 (0)