with-rn-image-crop-picker
Advanced tools
Comparing version 0.0.4 to 0.1.0
{ | ||
"name": "with-rn-image-crop-picker", | ||
"version": "0.0.4", | ||
"homepage": "https://github.com/mwegener-com/with-rn-image-crop-picker#readme", | ||
"author": "Marius Wegener", | ||
"repository": "https://github.com/mwegener-com/with-rn-image-crop-picker.git", | ||
"description": "An Expo config plugin for painless setup of `react-native-image-crop-picker`", | ||
"bugs": { | ||
"url": "https://github.com/mwegener-com/with-rn-image-crop-picker/issues" | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"license": "MIT", | ||
"private": false, | ||
"main": "app.plugin.js", | ||
"devDependencies": { | ||
"expo-module-scripts": "^2.0.0" | ||
}, | ||
"dependencies": { | ||
"@expo/config-plugins": "^3.0.6" | ||
}, | ||
"scripts": { | ||
"build": "expo-module build", | ||
"clean": "expo-module clean", | ||
"test": "expo-module test", | ||
"prepare": "expo-module prepare", | ||
"prepublishOnly": "expo-module prepublishOnly", | ||
"expo-module": "expo-module" | ||
} | ||
"name": "with-rn-image-crop-picker", | ||
"version": "0.1.0", | ||
"homepage": "https://github.com/mwegener-com/with-rn-image-crop-picker#readme", | ||
"author": "Marius Wegener", | ||
"repository": "https://github.com/mwegener-com/with-rn-image-crop-picker.git", | ||
"description": "An Expo config plugin for painless setup of `react-native-image-crop-picker`", | ||
"bugs": { | ||
"url": "https://github.com/mwegener-com/with-rn-image-crop-picker/issues" | ||
}, | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"license": "MIT", | ||
"private": false, | ||
"main": "app.plugin.js", | ||
"devDependencies": { | ||
"expo-module-scripts": "^2.0.0" | ||
}, | ||
"dependencies": { | ||
"@expo/config-plugins": "^3.0.6" | ||
}, | ||
"scripts": { | ||
"build": "expo-module build", | ||
"clean": "expo-module clean", | ||
"test": "expo-module test", | ||
"prepare": "expo-module prepare", | ||
"prepublishOnly": "expo-module prepublishOnly", | ||
"expo-module": "expo-module" | ||
} | ||
} |
# with-rn-image-crop-picker | ||
Expo config plugin for react-native-image-crop-picker. | ||
Requires Expo Dev Client | ||
Expo config plugin for [react-native-image-crop-picker](https://github.com/ivpusic/react-native-image-crop-picker). | ||
# Installation | ||
#### Warning | ||
Only supports iOS right now. | ||
1. Install from NPM | ||
Requires Expo Dev Client. | ||
Learn more about: | ||
- Expo Managed Workflow in 2021: [part 1](https://blog.expo.io/expo-managed-workflow-in-2021-5b887bbf7dbb), [part 2](https://blog.expo.io/expo-managed-workflow-in-2021-d1c9b68aa10) | ||
- [Expo dev-client docs](https://docs.expo.dev/clients/getting-started/) | ||
- [Expo config plugin](https://docs.expo.io/guides/config-plugins) | ||
## Usage | ||
1. Install with Expo | ||
```sh | ||
$ expo install with-rn-image-crop-picker | ||
``` | ||
npm install with-rn-image-crop-picker | ||
``` | ||
2. Add to app.json | ||
2. Check your app.json. It should look like this: | ||
``` | ||
```json | ||
"plugins": [ | ||
@@ -24,3 +32,3 @@ "with-rn-image-crop-picker" | ||
``` | ||
```sh | ||
$ expo prebuild | ||
@@ -30,5 +38,5 @@ $ expo run:ios --device | ||
# Configuartion | ||
## Configuartion | ||
You can configure the iOS messages by adding the following props: | ||
You can configure the iOS messages by adding the following props to your app.json file: | ||
@@ -40,18 +48,17 @@ - PhotoLibraryUsageDescription | ||
Example: | ||
```javascript | ||
"plugins": [ | ||
[ | ||
"with-rn-image-crop-picker", | ||
{ | ||
"PhotoLibraryUsageDescription": "Allow app XYZ to access your photos", | ||
"CameraUsageDescription": "Allow app XYZ to access your camera", | ||
"MicrophoneUsageDescription": "Allow app XYZ to access your microphone" | ||
} | ||
] | ||
], | ||
```json | ||
"plugins": [ | ||
[ | ||
"with-rn-image-crop-picker", | ||
{ | ||
"PhotoLibraryUsageDescription": "Allow app XYZ to access your photos", | ||
"CameraUsageDescription": "Allow app XYZ to access your camera", | ||
"MicrophoneUsageDescription": "Allow app XYZ to access your microphone" | ||
} | ||
] | ||
] | ||
``` | ||
# Contributing | ||
## Contributing | ||
Contributions are very welcome! |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5911
62