🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
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.4.3

6

lib/withSafeArea.js

@@ -107,2 +107,8 @@ // @flow

injected.contentInset.top = (contentInset.top || 0) + top
if (this.wrappedRef && this.wrappedRef.getScrollResponder) {
const scrollView = this.wrappedRef.getScrollResponder()
if (scrollView && scrollView._scrollAnimatedValue) {
scrollView._scrollAnimatedValue.setOffset(injected.contentInset.top);
}
}
}

@@ -109,0 +115,0 @@ if (applysToBottom) {

2

package.json
{
"name": "react-native-safe-area",
"version": "0.4.2",
"version": "0.4.3",
"description": "React Native module to get Safe Area Insets for iOS 11 or later",

@@ -5,0 +5,0 @@ "main": "lib/index",