react-native-safe-area
Advanced tools
Comparing version
{ | ||
"name": "react-native-safe-area", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "React Native module to get Safe Area Insets for iOS 11 or later", | ||
@@ -5,0 +5,0 @@ "main": "index", |
@@ -7,4 +7,25 @@ # react-native-safe-area | ||
### 1. Install library from `npm` | ||
```shell | ||
npm install --save react-native-safe-area | ||
``` | ||
### 2. Link native code | ||
You can link native code in the way you prefer: | ||
#### CocoaPods | ||
Add line to your project target section in your Podfile: | ||
```diff | ||
+ pod 'react-native-safe-area', path: '../node_modules/react-native-safe-area' | ||
``` | ||
#### react-native link | ||
Run command below: | ||
```shell | ||
react-native link react-native-safe-area | ||
@@ -11,0 +32,0 @@ ``` |
36268
2.75%83
33.87%