fix android
This commit is contained in:
parent
d4fc453cad
commit
e8dc21d6cc
|
@ -6,10 +6,6 @@
|
|||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="16"
|
||||
android:targetSdkVersion="22" />
|
||||
|
||||
<application
|
||||
android:name=".MainApplication"
|
||||
android:allowBackup="true"
|
||||
|
|
|
@ -6,7 +6,7 @@ buildscript {
|
|||
google()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.0.1'
|
||||
classpath 'com.android.tools.build:gradle:3.3.0'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
|
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
|||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
|
|
@ -29,7 +29,6 @@ export default class AlbumsScreen extends Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
|
||||
if (this.state.albumName) {
|
||||
const albumName = this.state.albumName;
|
||||
return <GalleryScreen albumName={albumName}/>;
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* Metro configuration for React Native
|
||||
* https://github.com/facebook/react-native
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
transformer: {
|
||||
getTransformOptions: async () => ({
|
||||
transform: {
|
||||
experimentalImportSupport: false,
|
||||
inlineRequires: false,
|
||||
},
|
||||
}),
|
||||
},
|
||||
};
|
|
@ -16,7 +16,8 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start": "watchman watch-del-all && node node_modules/react-native/local-cli/cli.js start",
|
||||
"xcode": "open example-ios/CameraKit.xcodeproj"
|
||||
"xcode": "open example-ios/CameraKit.xcodeproj",
|
||||
"androidStudio": "open -a /Applications/Android\\ Studio.app ./example-android"
|
||||
},
|
||||
"main": "src/index.js",
|
||||
"dependencies": {
|
||||
|
@ -29,7 +30,8 @@
|
|||
"babel-jest": "22.4.1",
|
||||
"babel-preset-react-native": "4.0.0",
|
||||
"jest": "22.4.2",
|
||||
"react-test-renderer": "16.0.0"
|
||||
"react-test-renderer": "16.0.0",
|
||||
"metro-react-native-babel-preset": "0.51.0"
|
||||
},
|
||||
"homepage": "https://github.com/wix/react-native-camera-kit"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue