{"bugs":{"url":"https://github.com/unimodules/react-native-unimodules/issues"},"dist":{"shasum":"9d5406129967ee6b03ef3255414738425e1e4bb5","tarball":"https://registry.npmjs.org/react-native-unimodules/-/react-native-unimodules-0.6.0-rc.1.tgz","fileCount":9,"integrity":"sha512-Kc7rMGm+TMlXB8prSfs/yAHRreVsNyLCQIm5s8lkQw6wkfwUGx4FXz93/y8hzoIIeITMEIlrvuwNFtluVr/SFw==","signatures":[{"sig":"MEQCIBXSodIE7RDA4LNoShrjTffBf8/VcA6I0wKFLFpFdYz/AiBcbb6wpToXwD70ECL3vSLiWWuRrYz3XHvdY0AXogwrsw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26091,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdfJ10CRA9TVsSAnZWagAA2WYQAIsXRPI5fs09L/TQk1Yq\nMUSEbPIucbl8NTMMPX4cmhTuPJWfkYfdCyfxKPRumEoaGv82o9SW4So2pmMb\nGaB42SwFR4p7tubbCLFvZBI4rnTsyJpY0jj2qQhLrbchy+lwZ7DW3u9cZMjw\nUAUBW+IpEBiCjaOMTZMaFDHrBIytcODSqYTag8M+rX5yKV6FahrUhCNMUR0l\n8UpSnd3wC6FL6ziVItg4uB9ae/w0dvfKAL4ICauPksyNCbu9vRjPWl25y+fL\nBqe9BQVVDrK/iIxGcFJUYfhJLh6zoHmD3Dlu2L+hay8U3uajeKjDeXsfJm/X\nfLRMHkBT7pKJEiBeax9QDf6U4pGL1wjYRB2LZNT9D9NHveWNoswlvdlcdy1k\nu3EPTFVcKHxaxEw+vXf0ZwJWgWyS7iLxRc5HzAysWm2lokJcScLcoCR21Ybz\nlYuRwEXpOEnEVTY9IEpo9d/UKdjsGY/QUH1XmrXxUT0XJetttIKjlTSj+jtU\nmGPuYUCsO3qSmsBIisM4LTW2MEm9V7msg+MkvHFcMCgySz6tpPohyhUilEA2\nZb+I2KAIfaiC5lCXQ8wEEEEV+Z8HsJujyCvIaAzO7T76xPfvpmft99mcNVzz\nQOQI7bq+YFBHKDt+tMHFEMxaWPgR+wp6n8h68zx1eTCWbqJTZkTFukyuqHAc\nx4/Q\r\n=uZfQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"react-native-unimodules","types":"index.d.ts","author":"","readme":"# react-native-unimodules\n\nThis library contains the core Unimodule infrastructure and a collection of Unimodules and interfaces that are commonly depended on by other Unimodules.\nYou will need to install this before using libraries from Foundation, like `expo-camera`, `expo-media-library`, and others.\n\n**Note: `react-native-unimodules` are not compatible with React Native 0.60.x yet.**\n\n## Installation\n\nThe easiest way to do this is to initialize a \"bare\" project with `expo-cli` using `expo init --template bare-minimum`.\n\nIf you have an existing app, you can follow these steps instead.\n**This project requires that you use CocoaPods on iOS**, to set it up see [this gist](https://gist.github.com/brentvatne/b0ea11a36dc423e441b7d36e36eb5a26), or relevant parts of the [this guide](https://facebook.github.io/react-native/docs/integration-with-existing-apps#3-install-cocoapods).\n\n### Install the package\n\n```bash\nnpm install react-native-unimodules\n```\n\n### Configure iOS\n\n- Go back to the `ios` directory and open your Podfile, make your Podfile look [like this one](https://gist.github.com/sjchmiela/6c079f2173938a9a61a7c6f053c45000).\n  - If you need to customize the path to node_modules, for example because you are using yarn workspaces, then you can pass in a param for this: `use_unimodules!(modules_paths: ['./path/to/node_modules'])`\n  - If you need to exclude some of the unimodules that you are not using but they got installed by your other dependencies (like `expo`), then you can pass in `exclude` param for this. For example, if you want to exclude `expo-face-detector`, you may want to use this: `use_unimodules!(exclude: ['expo-face-detector'])`\n- Run `pod install` again\n- Update your `AppDelegate.h` and `AppDelegate.m` according to [to look like these](https://gist.github.com/brentvatne/1ece8c32a3c5c9d0ac3a470460c65603).\n  - If you use [`react-native-navigation`](https://github.com/wix/react-native-navigation), you will need to use its `bridgeManagerDelegate` option [like in this gist](https://gist.github.com/brentvatne/67909ec442121de22c9b81c629a99aa6).\n\n#### Add permission usage description keys to `Info.plist`\n\nIn order to submit your app to the App Store, you will need to eventually add these keys to your `Info.plist`. Even if you don't use the APIs described, you need to include the keys because code related to asking the permission will be bundled regardless, and Apple's static analysis tools will detect it and reject your app if the key isn't present. Including the key without using it has no impact to your users - iOS app permissions are requested at runtime and not listed in the app store listing as they are on Android. Test the permission prompts and customize the message as needed.\n\n```xml\n<key>NSCalendarsUsageDescription</key>\n<string>Allow $(PRODUCT_NAME) to access your calendar</string>\n<key>NSCameraUsageDescription</key>\n<string>Allow $(PRODUCT_NAME) to use the camera</string>\n<key>NSContactsUsageDescription</key>\n<string>Allow $(PRODUCT_NAME) to access your contacts</string>\n<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>\n<string>Allow $(PRODUCT_NAME) to use your location</string>\n<key>NSLocationAlwaysUsageDescription</key>\n<string>Allow $(PRODUCT_NAME) to use your location</string>\n<key>NSLocationWhenInUseUsageDescription</key>\n<string>Allow $(PRODUCT_NAME) to use your location</string>\n<key>NSMicrophoneUsageDescription</key>\n<string>Allow $(PRODUCT_NAME) to access your microphone</string>\n<key>NSMotionUsageDescription</key>\n<string>Allow $(PRODUCT_NAME) to access your device's accelerometer</string>\n<key>NSPhotoLibraryAddUsageDescription</key>\n<string>Give $(PRODUCT_NAME) permission to save photos</string>\n<key>NSPhotoLibraryUsageDescription</key>\n<string>Give $(PRODUCT_NAME) permission to access your photos</string>\n<key>NSRemindersUsageDescription</key>\n<string>Allow $(PRODUCT_NAME) to access your reminders</string>\n```\n\n### Configure Android\n\n- At the top of `android/settings.gradle`, add `apply from: '../node_modules/react-native-unimodules/gradle.groovy'` and then on the next line add `includeUnimodulesProjects()`.\n- Add `apply from: '../../node_modules/react-native-unimodules/gradle.groovy'` anywhere in `android/app/build.gradle` and then `addUnimodulesDependencies()` inside `dependencies {}` block.\n- If you need to customize the path to node_modules, for example because you are using yarn workspaces, then you can pass in a param `modulesPaths` for both of these functions: `includeUnimodulesProjects([modulesPaths: ['./path/to/node_modules']])`, `addUnimodulesDependencies([modulesPaths: ['./path/to/node_modules']])`\n- If you need to exclude some of the unimodules that you are not using but they got installed by your other dependencies (like `expo`), then you can pass in `exclude` param for this. For example, if you want to exclude `expo-face-detector`, you may want to use this: `addUnimodulesDependencies([exclude: ['expo-face-detector']])`\n- You can also customize the configuration of the unimodules dependencies (the default is `implementation`, if you're using Gradle older than 3.0, you will need to set `configuration: \"compile\"` in `addUnimodulesDependencies`, like: `addUnimodulesDependencies([configuration: \"compile\"])`)\n- We recommend using Java 1.8, you can set this in `android/app/build.gradle` [like this](https://github.com/expo/expo/commit/e175f870418fc69e8c129168118264439d73d7cc).\n- Update `minSdkVersion` in `android/build.gradle` to `21`.\n- Update your `MainApplication.java` to according to [this diff](https://gist.github.com/tsapeta/9e50a4c2c0083fe8e578959526bfbed3/revisions#diff-a2e7ff8a82f1c4be06f8b8163f2afefa).\n\n#### Add permissions to AndroidManifest.xml\n\nAdd whichever of the following permissions you would like to use in your app to `android/app/src/main`:\n\n```xml\n<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\" />\n<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />\n<uses-permission android:name=\"android.permission.CAMERA\" />\n<uses-permission android:name=\"android.permission.READ_CONTACTS\" />\n<uses-permission android:name=\"android.permission.READ_CALENDAR\" />\n<uses-permission android:name=\"android.permission.WRITE_CALENDAR\" />\n<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" />\n<uses-permission android:name=\"android.permission.RECORD_AUDIO\" />\n<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />\n<uses-permission android:name=\"android.permission.WRITE_SETTINGS\" />\n```\n\n## API\n\nIt's possible that you will not have to use any of the code provided by this package directly, it may be used only by other Unimodules that you install.\n\nBut it's likely that you will want to use something like FileSystem or Permissions, and to do that you can import the following modules like so:\n\n```js\nimport {\n  Asset,\n  Constants,\n  FileSystem,\n  Permissions,\n} from 'react-native-unimodules';\n```\n\nYou can import them directly from the specific Unimodule package if you like, but your linter may complain about importing a transitive dependency.\n\n```js\nimport * as Permissions from 'expo-permissions';\n```\n","gitHead":"5d4fcf318390f59cecd1ae5d191afb15488a4447","license":"MIT","private":false,"scripts":{"postinstall":"node ./scripts/postinstall.js"},"_npmUser":{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"},"homepage":"https://github.com/unimodules/react-native-unimodules#readme","deprecated":"replaced by the 'expo' package, learn more: https://blog.expo.dev/whats-new-in-expo-modules-infrastructure-7a7cdda81ebc","repository":{"url":"git+https://github.com/unimodules/react-native-unimodules.git","type":"git"},"_npmVersion":"6.9.0","description":"This library contains the core Unimodule infrastructure and a collection of Unimodules and interfaces that are commonly depended on by other Unimodules. You will need to install this before using libraries from Foundation, like `expo-camera`, `expo-media-","directories":{},"maintainers":[{"name":"bbarthec","email":"bartlomiejbukowski.b@gmail.com"},{"name":"brentvatne","email":"brentvatne@gmail.com"},{"name":"ccheever","email":"ccheever@gmail.com"},{"name":"charliecruzan","email":"charliecruzan@gmail.com"},{"name":"dsokal","email":"dominiksokal@gmail.com"},{"name":"esamelson","email":"eric@expo.io"},{"name":"evanbacon","email":"baconbrix@gmail.com"},{"name":"expoadmin","email":"support@expo.io"},{"name":"fson","email":"ville.immonen@iki.fi"},{"name":"ide","email":"ide+npm@jameside.com"},{"name":"mczernek","email":"czernekmichal@gmail.com"},{"name":"quinlanj","email":"quinlanjung@gmail.com"},{"name":"sjchmiela","email":"sjchmiela@gmail.com"},{"name":"tsapeta","email":"sapeta.tomasz@gmail.com"},{"name":"wkozyra","email":"wojciech.kozyra@swmansion.com"}],"_nodeVersion":"10.16.0","dependencies":{"chalk":"^2.4.2","expo-asset":"~7.0.0-rc.0","expo-constants":"~7.0.0-rc.0","@unimodules/core":"~4.0.0-rc.0","expo-file-system":"~7.0.0-rc.0","expo-permissions":"~7.0.0-rc.0","expo-app-loader-provider":"~7.0.0-rc.0","unimodules-font-interface":"~4.0.0-rc.0","unimodules-camera-interface":"~4.0.0-rc.0","unimodules-sensors-interface":"~4.0.0-rc.0","unimodules-constants-interface":"~4.0.0-rc.0","@unimodules/react-native-adapter":"~4.0.0-rc.0","unimodules-file-system-interface":"~4.0.0-rc.0","unimodules-permissions-interface":"~4.0.0-rc.0","unimodules-image-loader-interface":"~4.0.0-rc.0","unimodules-task-manager-interface":"~4.0.0-rc.0","unimodules-face-detector-interface":"~4.0.0-rc.0","unimodules-barcode-scanner-interface":"~4.0.0-rc.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/react-native-unimodules_0.6.0-rc.1_1568447859961_0.6427616354063883","host":"s3://npm-registry-packages"},"_id":"react-native-unimodules@0.6.0-rc.1","version":"0.6.0-rc.1"}