Created
March 18, 2021 17:15
-
-
Save spit4520/2585a470157227c84c4f50e78304af56 to your computer and use it in GitHub Desktop.
Fix for React Native 63, allows UIManager to be used with the new replacemnt for currentlyFocusedInput
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Replace all currentlyFocusedField with currentlyFocusedInput | |
import { | |
findNodeHandle, | |
UIManager, | |
TextInput, | |
} from 'react-native'; | |
const currentlyFocusedField = findNodeHandle(TextInput.State.currentlyFocusedInput()); | |
UIManager.measure(currentlyFocusedField, (originX, originY, width, height, pageX, pageY); | |
//Not a full example of animation, but I have to get back to work. Hope this helps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment