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

undefined is not a constructor (evaluating 'new RCTKeyboardToolbarHelper()'

Open darron-haworth opened this issue 7 years ago • 3 comments

"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()}
/>

Error

darron-haworth avatar Mar 06 '17 23:03 darron-haworth

Had the same issue before doing the iOS configuration. Followed the exact instructions and it worked for me.

enstulen avatar Jun 13 '17 16:06 enstulen

I'm getting this same message. Followed the installation instructions.

steve228uk avatar Jul 12 '17 15:07 steve228uk

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"
    ]
}

steve228uk avatar Jul 12 '17 16:07 steve228uk