Skip to content

Commit ba55dd7

Browse files
cooptwostarÁlvaro Medina Ballester
authored andcommitted
Don't use React Native's default export (APSL#361)
react-native-web removed support for this. No real need to do it as findNodeHandle is imported anyway.
1 parent 92439ee commit ba55dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/KeyboardAwareHOC.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import React from 'react'
44
import PropTypes from 'prop-types'
5-
import ReactNative, {
5+
import {
66
Keyboard,
77
Platform,
88
UIManager,
@@ -459,7 +459,7 @@ function KeyboardAwareHOC(
459459
if (extraHeight === undefined) {
460460
extraHeight = this.props.extraHeight
461461
}
462-
const reactNode = ReactNative.findNodeHandle(nodeID)
462+
const reactNode = findNodeHandle(nodeID)
463463
this.scrollToFocusedInput(
464464
reactNode,
465465
extraHeight + this.props.extraScrollHeight,

0 commit comments

Comments
 (0)