Merge pull request #207 from chris-teague/fix/camera-screen-base-rn-0.56
Fixes “Undefined is not an object (evaluating '_reactNative.Image.res…
This commit is contained in:
commit
955f4ddd17
|
@ -44,7 +44,7 @@ export default class GalleryScreen extends Component {
|
|||
<View style={{position: 'absolute', width, height, backgroundColor: 'green'}}>
|
||||
<View style={styles.container}>
|
||||
<Image
|
||||
resizeMode={Image.resizeMode.cover}
|
||||
resizeMode={"cover"}
|
||||
style={{width: 300, height: 300}}
|
||||
source={{uri: this.state.presentedImage.imageUri}}
|
||||
/>
|
||||
|
|
|
@ -119,7 +119,7 @@ export default class CameraScreenBase extends Component {
|
|||
<Image
|
||||
style={{ flex: 1, justifyContent: 'center' }}
|
||||
source={this.state.flashData.image}
|
||||
resizeMode={Image.resizeMode.contain}
|
||||
resizeMode={"contain"}
|
||||
/>
|
||||
</TouchableOpacity>
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ export default class CameraScreenBase extends Component {
|
|||
<Image
|
||||
style={{ flex: 1, justifyContent: 'center' }}
|
||||
source={this.props.cameraFlipImage}
|
||||
resizeMode={Image.resizeMode.contain}
|
||||
resizeMode={"contain"}
|
||||
/>
|
||||
</TouchableOpacity>
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue