halilb / react-native-textinput-effects

Text inputs with custom label and icon animations for iOS and android. Built with react native and inspired by Codrops.
MIT License
2.98k stars 291 forks source link

Cannot read property 'bind' of undefined #99

Closed D4nt4lion closed 5 years ago

D4nt4lion commented 5 years ago

Starting from react-native 0.57.0 I get the error Cannot read property 'bind' of undefined.

Output:


TypeError: Cannot read property 'bind' of undefined

This error is located at:
    in AnimatedComponent (at Kohana.js:68)
    in TouchableWithoutFeedback (at Kohana.js:67)
    in RCTView (at View.js:45)
    in View (at Kohana.js:63)
    in Kohana (at AccountScreen.tsx:61)
    in RCTView (at View.js:45)
    in View (at AccountScreen.tsx:60)
    in RCTView (at View.js:45)
    in View (at AccountScreen.tsx:57)
    in RCTView (at View.js:45)
    in View (at AccountScreen.tsx:56)
    in AccountScreen (at Account.tsx:47)
    in RCTView (at View.js:45)
    in View (at Account.tsx:45)
    in Account (created by Connect(Account))
    in Connect(Account) (at Navigation.js:83)
    in Provider (at Navigation.js:82)
    in _class2 (at renderApplication.js:34)
    in RCTView (at View.js:45)
    in View (at AppContainer.js:98)
    in RCTView (at View.js:45)
    in View (at AppContainer.js:115)
    in AppContainer (at renderApplication.js:33)
new
    e27df88c-a53b-44f9-af46-63b558d64c4f:54000:57
constructClassInstance
    e27df88c-a53b-44f9-af46-63b558d64c4f:16290:24
updateClassComponent
    e27df88c-a53b-44f9-af46-63b558d64c4f:17991:11
beginWork
    e27df88c-a53b-44f9-af46-63b558d64c4f:18686:22
performUnitOfWork
    e27df88c-a53b-44f9-af46-63b558d64c4f:21313:18
workLoop
    e27df88c-a53b-44f9-af46-63b558d64c4f:21347:30
renderRoot
    e27df88c-a53b-44f9-af46-63b558d64c4f:21418:13
performWorkOnRoot
    e27df88c-a53b-44f9-af46-63b558d64c4f:22136:13
performWork
    e27df88c-a53b-44f9-af46-63b558d64c4f:22063:13
performSyncWork
    e27df88c-a53b-44f9-af46-63b558d64c4f:22039:9
halilb commented 5 years ago

Thanks for reporting @D4nt4lion.

This looks like a react-native and babel issue. Could you try the solutions proposed in this issue? https://github.com/facebook/react-native/issues/20588#issuecomment-423499062

Please let me know if the problem continues after applying those solutions.