add `react-native` as a dev dependency
This commit is contained in:
parent
980debef2f
commit
cd545a2df9
|
@ -8,18 +8,6 @@ buildscript {
|
|||
}
|
||||
}
|
||||
|
||||
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
|
||||
|
||||
allprojects {
|
||||
|
||||
configurations.all {
|
||||
resolutionStrategy {
|
||||
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
|
|
|
@ -16,6 +16,7 @@ import com.afollestad.materialdialogs.MaterialDialog;
|
|||
import com.afollestad.materialdialogs.StackingBehavior;
|
||||
import com.afollestad.materialdialogs.simplelist.MaterialSimpleListAdapter;
|
||||
import com.afollestad.materialdialogs.simplelist.MaterialSimpleListItem;
|
||||
import com.facebook.react.bridge.NativeModule;
|
||||
import com.facebook.react.bridge.Callback;
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
"homepage": "https://github.com/aakashns/react-native-dialogs#readme",
|
||||
"devDependencies": {
|
||||
"@react-native-community/eslint-config": "^0.0.7",
|
||||
"react-native": "0.72.3",
|
||||
"all-contributors-cli": "^4.11.1",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-plugin-prettier": "^3.1.2",
|
||||
|
|
Loading…
Reference in New Issue