From cc0159851f0ec989254539f7a9c235ac516e459b Mon Sep 17 00:00:00 2001 From: TheNerdGuyLulu Date: Fri, 26 Apr 2024 13:36:20 +0200 Subject: [PATCH] chore: improve docs --- README.md | 35 ++++++++++++++++++++++++----------- yarn.lock | 8 ++++---- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 357c55a7..ec6c80e6 100644 --- a/README.md +++ b/README.md @@ -474,25 +474,38 @@ The plugin provides props for extra customization. Every time you change the pro } ``` -Place your `google-services.json` inside the project's root and link it. +#### Push notifications -``` - "android": { +Add the following configurations into your `app.json` or `app.config.js`: + +Place your `google-services.json` inside the project's root and link it + +```json +{ + "expo": { + ... + "android": { "googleServicesFile": "./google-services.json", ... - } + } + } ``` Add the necessary permission descriptions to infoPlist key. -``` -"ios": { - ... - "infoPlist": { - "NSCameraUsageDescription": "This is just a sample text to access the Camera", - "NSPhotoLibraryUsageDescription": "This is just a sample text to access the Photo Library" +```json +{ + "expo": { + ... + "ios": { + ... + "infoPlist": { + "NSCameraUsageDescription": "This is just a sample text to access the Camera", + "NSPhotoLibraryUsageDescription": "This is just a sample text to access the Photo Library" + } + ... + } } - ... } ``` diff --git a/yarn.lock b/yarn.lock index bdc9a3dc..871c15a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1204,10 +1204,10 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" -"@expo/config-plugins@^7.8.4": - version "7.8.4" - resolved "https://registry.yarnpkg.com/@expo/config-plugins/-/config-plugins-7.8.4.tgz#533b5d536c1dc8b5544d64878b51bda28f2e1a1f" - integrity sha512-hv03HYxb/5kX8Gxv/BTI8TLc9L06WzqAfHRRXdbar4zkLcP2oTzvsLEF4/L/TIpD3rsnYa0KU42d0gWRxzPCJg== +"@expo/config-plugins@^7.9.1": + version "7.9.1" + resolved "https://registry.yarnpkg.com/@expo/config-plugins/-/config-plugins-7.9.1.tgz#fe4f7e4f9d4e87f2dcf2344ffdc59eb466dd5d2e" + integrity sha512-ICt6Jed1J0tPYMQrJ8K5Qusgih2I6pZ2PU4VSvxsN3T4n97L13XpYV1vyq1Uc/HMl3UhOwldipmgpEbCfeDqsQ== dependencies: "@expo/config-types" "^50.0.0-alpha.1" "@expo/fingerprint" "^0.6.0"