fixed so android cropping works in all orientations.

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