From 79fa862c67b6d9a0f797e93e0d9a3adf7fdf0c22 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 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 357c55a..ec6c80e 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" + } + ... + } } - ... } ```