37 lines
700 B
Markdown
37 lines
700 B
Markdown
# `react-native-image-resizer` example
|
|
|
|
This is a very simple example app, loading the first photo from the device camera roll
|
|
and allowing to resize it.
|
|
|
|
## Installation
|
|
|
|
Be sure to have React Native installed.
|
|
|
|
```
|
|
cd example
|
|
npm install
|
|
```
|
|
|
|
### iOS
|
|
|
|
```
|
|
react-native run-ios
|
|
```
|
|
|
|
### Android
|
|
|
|
```
|
|
react-native run-android
|
|
```
|
|
|
|
## Development
|
|
|
|
If you want to use this sample app to develop `react-native-image-resizer`, erase the `node_modules/react-native-image-resizer` folder and replace it by the git repository:
|
|
|
|
```
|
|
rm -rf node_modules/react-native-image-resizer
|
|
cd node_modules && git clone git@github.com:bamlab/react-native-image-resizer.git
|
|
```
|
|
|
|
Recompile and relaunch iOS/Android apps.
|