add `react-native` as a dev dependency

This commit is contained in:
Siddarth Kumar 2023-08-21 13:45:38 +05:30
parent 980debef2f
commit cd545a2df9
No known key found for this signature in database
GPG Key ID: F84DB2CA5207F534
3 changed files with 2 additions and 12 deletions

View File

@ -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 {

View File

@ -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;

View File

@ -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",