I'm trying to preview the image I get in the next scene but the transition doesn't happen when I click on the camera button.
import { Actions } from 'react-native-router-flux';
import Camera from 'react-native-camera';
export default class PageTwo extends Component {
render() {
return (
<View style={styles.container} >
<Camera ref={(cam) => { this.camera = cam; }}
style={styles.preview}
aspect={Camera.constants.Aspect.fill}>
<Text style={styles.capture}
onPress={this.takePicture.bind(this)}>
<Icon name="ios-camera"/>
</Text>
</Camera>
</View>
)
}
takePicture() {
this.camera.capture()
.then((data) => {Actions.previewimg});
}
}