react-native-textinput-utils
react-native-textinput-utils copied to clipboard
undefined is not a constructor (evaluating 'new RCTKeyboardToolbarHelper()'
"react": "^15.4.2",
"react-native": "^0.41.2"
I cannot get this library to work, followed the instructions for linking everything properly but when I attempt to use I get the red error below.
import RCTKeyboardToolbarTextInput from 'react-native-textinput-utils';
<RCTKeyboardToolbarTextInput
leftButtonText='I_AM_CANCEL_BUTTON'
rightButtonText='I_AM_DONE_BUTTON'
onCancel={(dismissKeyboard) => dismissKeyboard()}
onDone={(dismissKeyboard) => dismissKeyboard()}
/>
Had the same issue before doing the iOS configuration. Followed the exact instructions and it worked for me.
I'm getting this same message. Followed the installation instructions.
I've also added the transform-class-properties
plugin and added it to my project's .babelrc
and still no luck.
{
"presets": [
"react-native"
],
"plugins": [
"transform-decorators-legacy",
"transform-class-properties"
]
}