Make the component work w/ RN 0.25+
This commit is contained in:
parent
9b5c18c6a9
commit
6fe8bda52f
@ -1,14 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
var React = require('react-native');
|
||||
var {
|
||||
requireNativeComponent,
|
||||
TouchableHighlight,
|
||||
View,
|
||||
} = React;
|
||||
|
||||
var ToolTipMenu = React.NativeModules.ToolTipMenu;
|
||||
|
||||
NativeModules,
|
||||
} = require('react-native');
|
||||
var React = require('react');
|
||||
var findNodeHandle = require('react-native/Libraries/ReactNative/findNodeHandle');
|
||||
var ToolTipMenu = NativeModules.ToolTipMenu;
|
||||
var RCTToolTipText = requireNativeComponent('RCTToolTipText', null);
|
||||
|
||||
var propTypes = {
|
||||
@ -22,7 +22,7 @@ var propTypes = {
|
||||
|
||||
var ViewClass = React.createClass({
|
||||
showMenu: function() {
|
||||
ToolTipMenu.show(React.findNodeHandle(this.refs.toolTipText), this.getOptionTexts());
|
||||
ToolTipMenu.show(findNodeHandle(this.refs.toolTipText), this.getOptionTexts());
|
||||
},
|
||||
|
||||
getOptionTexts: function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user