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}) | |
} |
Solved my issue. Need to add $(SRCROOT)/../react-native/React
to the header search paths
@iotashan adding $(SRCROOT)/../react-native/React
to the header search paths still displays 'React/RCTTextField.h' file not found for me, any pointers?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm doing something similar with the new RN, but am having a strange issue.
I've changed my import to:
#import <React/RCTTextField.h>
But I'm still getting the error:
'React/RCTTextField.h' file not found
I must be doing something dumb. A quick tip would help :)