React Native Expo Camera IOS模拟器

时间:2018-10-26 13:34:04

标签: ios react-native camera expo

Expo takePictureAsync()在Android上工作正常,但是当我在IOS模拟器中拍摄图像时,该图像上带有时间戳。 enter image description here

我的PicturePreview屏幕代码如下。我尝试删除其中的图标并仅加载空白图像,但时间戳仍然没有消失。这仅仅是因为模拟器,还是会在实际设备上发生?

 <ImageBackground
                source={{ uri: this.props.navigation.state.params.imageUri }}
                resizeMode='cover'
                style={{ width: '100%', height: '100%' }}
            >
                <View style={{ position: 'absolute', bottom: 0, right: 0, margin: 10, padding: 10 }}>
                  {this.state.loading? <ActivityIndicator size="large" color="#e67e22" />: <MaterialCommunityIcons name="check"
                        style={{ color: '#e67e22', fontSize: 50, marginTop: 5 }}
                        onPress={this.uploadToGdrive}
                    />} 
                </View>
                <View style={{ position: 'absolute', bottom: 0, left: 0, margin:10, padding: 10 }}>
                <MaterialCommunityIcons name="close"
                        style={{ color: '#e67e22', fontSize: 50, marginTop: 5 }}
                        onPress={()=>{this.props.navigation.navigate('CameraScreen')}}
                    />
                </View>
    </ImageBackground>

0 个答案:

没有答案