Last active
August 17, 2017 14:41
-
-
Save chirag04/9a0c9d358c89d4504084 to your computer and use it in GitHub Desktop.
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
//In RCTTextField.h | |
@interface RCTTextField : UITextField <UITextFieldDelegate> | |
//In RCTTextField.m | |
In Init: | |
_eventDispatcher = eventDispatcher; | |
//Adding the delegate. | |
self.delegate = self; | |
[self addTarget:self action:@selector(_textFieldDidChange) forControlEvents:UIControlEventEditingChanged]; | |
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField | |
{ | |
return NO; | |
} |
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
var ToolTipMenu = require('NativeModules').ToolTipMenu; | |
handleFocus: () => { | |
ToolTipMenu.show(this.refs.input.getNodeHandle(), ['x', 'y', 'z']); | |
} | |
handleChange: (text) => { | |
this.setState({text: text}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@iotashan adding
$(SRCROOT)/../react-native/React
to the header search paths still displays 'React/RCTTextField.h' file not found for me, any pointers?