React-native: Update Version 0.25.1 React.findNodeHandle undefined is not a function

Created on 5 May 2016  路  5Comments  路  Source: facebook/react-native

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';

const target = e.nativeEvent.target;
if (target !== React.findNodeHandle(this.refs.emailInput) &&
target !== React.findNodeHandle(this.refs.passInput)) {}

Ran Commands Locked

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()

All 5 comments

@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
const target = e.nativeEvent.target;
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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

janmonschke picture janmonschke  路  3Comments

ghost picture ghost  路  3Comments

DreySkee picture DreySkee  路  3Comments

anchetaWern picture anchetaWern  路  3Comments

jlongster picture jlongster  路  3Comments