my code and dependencies
"dependencies": {
"react": "^0.14.8",
"react-native": "^0.25.1",
"react-native-scrollable-tab-view": "^0.4.0",
"react-native-share": "lifuzu/react-native-share",
"react-native-vector-icons": "^1.2.0",
"react-native-viewpager": "^0.2.1"
},
import React, {Component,} from 'react';
import{
StyleSheet,
Text,
TextInput,
ScrollView,
Dimensions,
} from 'react-native';
if (target !== React.findNodeHandle(this.refs.emailInput) &&
target !== React.findNodeHandle(this.refs.passInput)) {}
@facebook-github-bot stack-overflow
Hey @dacaiji and thanks for posting this! @damusnet tells me this issue looks like a question that would be best asked on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. Will close this as this is really a question that should be asked on SO.
I don't understand
if (target !== React.findNodeHandle(this.refs.emailInput) &&
target !== React.findNodeHandle(this.refs.passInput)) {
this.refs.emailInput.blur();
this.refs.passInput.blur();
}}}>
In the old version can be used
@dacaiji , you should use it as ReactNative method. Add this line to beginning:
import ReactNative from 'react-native';
After change React.findNodeHandle() to ReactNative.findNodeHandle()
@aljs thank you very much . i have already solved the problem!
Most helpful comment
@dacaiji , you should use it as ReactNative method. Add this line to beginning:
import ReactNative from 'react-native';After change React.findNodeHandle() to ReactNative.findNodeHandle()