react-native-safe-area
Advanced tools
Comparing version
@@ -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) { |
{ | ||
"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", |
59105
0.55%265
2.32%