mirror of
https://github.com/status-im/react-native-camera.git
synced 2026-08-30 21:21:06 +00:00
fix issue with runing on android. Add native props (#718)
I've have 2 separate confirmations that this PR works as described. Happy to merge - thank you!
This commit is contained in:
committed by
Nick Pomfret
parent
e3d3572780
commit
885cdf41b7
@@ -260,7 +260,15 @@ export default class Camera extends Component {
|
||||
|
||||
export const constants = Camera.constants;
|
||||
|
||||
const RCTCamera = requireNativeComponent('RCTCamera', Camera);
|
||||
const RCTCamera = requireNativeComponent('RCTCamera', Camera, {nativeOnly: {
|
||||
testID: true,
|
||||
renderToHardwareTextureAndroid: true,
|
||||
accessibilityLabel: true,
|
||||
importantForAccessibility: true,
|
||||
accessibilityLiveRegion: true,
|
||||
accessibilityComponentType: true,
|
||||
onLayout: true
|
||||
}});
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
base: {},
|
||||
|
||||
Reference in New Issue
Block a user