Closed wzy535 closed 8 years ago
please check example project.
Relevant lines are: https://github.com/ivpusic/react-native-image-crop-picker/blob/master/example/app.js#L71 for saving received image to state,
and https://github.com/ivpusic/react-native-image-crop-picker/blob/master/example/app.js#L98 for displaying image
It works now ,Thank you very much!
First thank you for your help!
Version
Tell us which versions you are using:
Expected behaviour
I can get photo ,but can't display in simulator Here is the got photo path: file:///data/user/0/com.homagou/cache/30920b79-198a-4a44-8702-6f742678ad7a.jpg and it can't display use <Image source={{uri:'data:image/jpeg;base64,file:///data/user/0/com.homagou/cache/30920b79-198a-4a44-8702-6f742678ad7a.jpg', isStatic:true}} />
or <Image soure={require('file:///data/user/0/com.homagou/cache/30920b79-198a-4a44-8702-6f742678ad7a.jpg')} />
Source code:
`export default class NewDishView extends React.Component{ constructor(props){ super(props) this.state={//file:///data/user/0/com.homagou/cache/30920b79-198a-4a44-8702-6f742678ad7a.jpg imgSource:require('../images/profiledefault.jpg') } } goBack(){ this.props.navigator.pop(); }
}`