From 607d780a4e2223f8bd2c8fdb76af033453a99d78 Mon Sep 17 00:00:00 2001 From: Will Date: Mon, 20 Nov 2023 16:13:38 -0300 Subject: [PATCH] docs: updated README.md --- README.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f94d1d6..cbceaf6 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ - [Old Versions](#old-versions) - [Installation](#installation) -- [Additional Config to Web](#additional-config-to-web) +- [Additional Config](#additional-config) - [Features](#features) - [Basic Usage](#basic-usage) - [With Class Component](#class-component) @@ -96,7 +96,9 @@ OR $ yarn add react-native-international-phone-number ``` -## Additional config to `Web` +## Additional config + +### iOS and Web - Using React Native CLI: @@ -115,6 +117,7 @@ create a `react-native.config.js` file at the root of your react-native project ``` Then link the font to your native projects with: + ```bash npx react-native-asset ``` @@ -138,6 +141,23 @@ npx react-native-asset > Observation: _you need to recompile your project after adding new fonts._ +## only iOS + +- Edit `Info.plist` inside `ios` folder with following code: + +```bash +... +UIAppFonts + + TwemojiMozilla.ttf + ... + +``` + +and add the font `Twemoji Mozilla` to the Copy Bundle Resources, in Build Phases inside your project XCode. + +> Observation: _you need to recompile your project after adding new fonts._ +
## Features