Skip to content

Commit

Permalink
feat(rnconfig): add React Native Config file
Browse files Browse the repository at this point in the history
Took originally from
yamill#372
  • Loading branch information
uqmessias committed Mar 6, 2020
1 parent b45830c commit 4e7981a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
compileSdkVersion 28
buildToolsVersion "28.0.3"

defaultConfig {
minSdkVersion 16
targetSdkVersion 22
targetSdkVersion 28
versionCode 1
versionName "1.0"
ndk {
Expand Down
10 changes: 1 addition & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,5 @@
"bugs": {
"url": "https://github.com/yamill/react-native-orientation/issues"
},
"homepage": "https://github.com/yamill/react-native-orientation#readme",
"rnpm": {
"android": {
"packageInstance": "new OrientationPackage()"
},
"ios": {
"project": "iOS/RCTOrientation.xcodeproj"
}
}
"homepage": "https://github.com/yamill/react-native-orientation#readme"
}
10 changes: 10 additions & 0 deletions react-native.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
rnpm: {
"android": {
"packageInstance": "new OrientationPackage()"
},
"ios": {
"project": "iOS/RCTOrientation.xcodeproj"
}
}
};

0 comments on commit 4e7981a

Please sign in to comment.