🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-native-safe-area

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-safe-area - npm Package Compare versions

Comparing version

to
0.2.2

react-native-safe-area.podspec

2

package.json
{
"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 @@ ```