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:
Ran Greenberg 2018-10-18 10:34:00 +03:00 committed by GitHub
commit 955f4ddd17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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}}
/>

View File

@ -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>
}