react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Update Version 0.25.1 React.findNodeHandle undefined is not a function

Open virtualthrough opened this issue 10 years ago • 5 comments

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

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

virtualthrough avatar May 05 '16 10:05 virtualthrough

@facebook-github-bot stack-overflow

damusnet avatar May 05 '16 10:05 damusnet

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.

ghost avatar May 05 '16 10:05 ghost

I don't understand
<View onStartShouldSetResponderCapture={(e) => { 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

virtualthrough avatar May 05 '16 10:05 virtualthrough

@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 avatar May 09 '16 03:05 aljs

@aljs thank you very much . i have already solved the problem!

virtualthrough avatar Jan 04 '17 09:01 virtualthrough