React Native Everywhere Image Picker
Cross-platform image picker for React/React Native. Built for iOS, Android, and web.
Installation
npm install --save react-native-everywhere-image-picker
Requirements
- For web use in
create-react-app
you MUST havereact-scripts
version 1.0.8 or over.
example
;;; const style = container: flex: 1 alignItems: "center" justifyContent: "center" image: width: 200 height: 200 marginTop: 25 ; Component state = uri: null ; { this; }; { console; }; { return <View style=stylecontainer> <ImagePicker onComplete=this_handleImage onFail=this_handleFail> <Text>Pick an image from camera roll</Text> </ImagePicker> thisstateuri && <Image source= uri: thisstateuri style=styleimage /> </View> ; }