mirror of
https://github.com/status-im/react-native-image-resizer.git
synced 2025-03-02 15:20:38 +00:00
- Throw exception instead of returning null sourceImage, which avoids returning pseudo-empty "file:" string to Javascript on failure - Use constant strings for checking path prefixes - Cleanup of conditional statements for checking path prefixes - Additional try-catch statements, contributing more-fine-grained error messages Other - Updated .gitignore to latest React Native template - Updated Android gradle scripts - Updated package.json's in root and in example to point to correct react/react-native versions, and to use local code for this library directly in the example app
15 lines
330 B
JSON
15 lines
330 B
JSON
{
|
|
"name": "ResizerExample",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "node node_modules/react-native/local-cli/cli.js start"
|
|
},
|
|
"dependencies": {
|
|
"react": "^15.4.0",
|
|
"react-native": "^0.41.0",
|
|
"react-native-gifted-spinner": "0.0.4",
|
|
"react-native-image-resizer": "file:../"
|
|
}
|
|
}
|