fixed so camera works in all orientations for ios

This commit is contained in:
Marcus Andersson
2017-12-20 20:19:14 +01:00
parent da1f0f2fdd
commit ec4ac6c74b
3 changed files with 20 additions and 12 deletions
+3 -2
View File
@@ -13,10 +13,10 @@ const styles = StyleSheet.create({
flex: 1,
},
preview: {
flex: 1,
alignSelf: "stretch",
justifyContent: 'flex-end',
alignItems: 'center',
height: 200
alignItems: 'center'
},
overlay: {
position: 'absolute',
@@ -187,6 +187,7 @@ export default class Example extends React.Component {
onZoomChanged={() => {}}
defaultTouchToFocus
mirrorImage={false}
cropToPreview={false}
/>
<View style={[styles.overlay, styles.topOverlay]}>
<TouchableOpacity