react-native-safe-area-view
Advanced tools
Comparing version
@@ -192,3 +192,6 @@ import React, { Component } from 'react'; | ||
this.view.getNode().measureInWindow((winX, winY, winWidth, winHeight) => { | ||
// getNode() is not necessary in newer versions of React Native | ||
const node = typeof this.view.measureInWindow === 'function' ? this.view : this.view.getNode(); | ||
node.measureInWindow((winX, winY, winWidth, winHeight) => { | ||
if (!this.view) { | ||
@@ -195,0 +198,0 @@ return; |
{ | ||
"name": "react-native-safe-area-view", | ||
"version": "0.14.8", | ||
"version": "0.14.9", | ||
"description": "JS only version of SafeAreaView for supporting iPhone X safe area insets.", | ||
@@ -5,0 +5,0 @@ "main": "index", |
16710
0.93%403
0.5%