fix react native 0.19.0 upgrade bugs for android
This commit is contained in:
parent
8f37727be6
commit
ff66374fd1
|
@ -4,7 +4,8 @@ import React, {
|
|||
NativeModules,
|
||||
PropTypes,
|
||||
StyleSheet,
|
||||
requireNativeComponent
|
||||
requireNativeComponent,
|
||||
View,
|
||||
} from 'react-native';
|
||||
|
||||
const CameraManager = NativeModules.CameraManager || NativeModules.CameraModule;
|
||||
|
@ -49,6 +50,7 @@ export default class Camera extends Component {
|
|||
};
|
||||
|
||||
static propTypes = {
|
||||
...View.propTypes,
|
||||
aspect: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.number
|
||||
|
|
|
@ -22,6 +22,7 @@ android {
|
|||
}
|
||||
lintOptions {
|
||||
abortOnError false
|
||||
warning 'InvalidPackage'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,5 +31,5 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
compile "com.facebook.react:react-native:0.17.+"
|
||||
compile "com.facebook.react:react-native:0.19.+"
|
||||
}
|
||||
|
|
|
@ -2,9 +2,10 @@ package com.lwansbrough.RCTCamera;
|
|||
|
||||
import android.support.annotation.Nullable;
|
||||
import com.facebook.react.uimanager.*;
|
||||
import com.facebook.react.uimanager.annotations.ReactProp;
|
||||
|
||||
public class RCTCameraViewManager extends SimpleViewManager<RCTCameraView> {
|
||||
private static final String REACT_CLASS = "RCTCameraView";
|
||||
public class RCTCameraViewManager extends ViewGroupManager<RCTCameraView> {
|
||||
private static final String REACT_CLASS = "RCTCamera";
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
|
|
Loading…
Reference in New Issue