Skip to content

Commit

Permalink
docs: updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AstrOOnauta committed Nov 20, 2023
1 parent 6cc17e7 commit 607d780
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:

Expand All @@ -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
```
Expand All @@ -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
...
<key>UIAppFonts</key>
<array>
<string>TwemojiMozilla.ttf</string>
...
</array>
```
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._
<br>
## Features
Expand Down

0 comments on commit 607d780

Please sign in to comment.