react-native-svg-charts: TypeError: method.bind is not a function Issue with react native 0.59.0
What is the problem?
Getting TypeError:
ExceptionsManager.js:74 TypeError: method.bind is not a function
This error is located at:
in Path (at animated-path.js:72)
in AnimatedPath (at chart.js:119)
in RNSVGSvgView (at Svg.js:83)
in Svg (at chart.js:110)
in RCTView (at View.js:45)
in View (at chart.js:107)
in RCTView (at View.js:45)
in View (at chart.js:106)
in Chart (at Challenge.js:112)
in RCTView (at View.js:45)
in View (at Challenge.js:75)
in Challenge (at withCharts.js:186)
in _temp (created by SceneView)
in SceneView (at StackViewLayout.js:795)
in RCTView (at View.js:45)
in View (at createAnimatedComponent.js:151)
in AnimatedComponent (at StackViewCard.js:69)
in RCTView (at View.js:45)
in View (at createAnimatedComponent.js:151)
in AnimatedComponent (at screens.native.js:59)
in Screen (at StackViewCard.js:57)
in Card (at createPointerEventsContainer.js:27)
in Container (at StackViewLayout.js:860)
in RCTView (at View.js:45)
in View (at screens.native.js:83)
in ScreenContainer (at StackViewLayout.js:311)
in RCTView (at View.js:45)
in View (at createAnimatedComponent.js:151)
in AnimatedComponent (at StackViewLayout.js:307)
in PanGestureHandler (at StackViewLayout.js:300)
in StackViewLayout (at withOrientation.js:30)
in withOrientation (at StackView.js:79)
in RCTView (at View.js:45)
in View (at Transitioner.js:215)
in Transitioner (at StackView.js:22)
in StackView (created by Navigator)
in Navigator (at createKeyboardAwareNavigator.js:12)
in KeyboardAwareNavigator (created by SceneView)
in SceneView (at StackViewLayout.js:795)
in RCTView (at View.js:45)
in View (at createAnimatedComponent.js:151)
in AnimatedComponent (at StackViewCard.js:69)
in RCTView (at View.js:45)
in View (at createAnimatedComponent.js:151)
in AnimatedComponent (at screens.native.js:59)
in Screen (at StackViewCard.js:57)
in Card (at createPointerEventsContainer.js:27)
in Container (at StackViewLayout.js:860)
in RCTView (at View.js:45)
in View (at screens.native.js:83)
in ScreenContainer (at StackViewLayout.js:311)
in RCTView (at View.js:45)
in View (at createAnimatedComponent.js:151)
in AnimatedComponent (at StackViewLayout.js:307)
in PanGestureHandler (at StackViewLayout.js:300)
in StackViewLayout (at withOrientation.js:30)
in withOrientation (at StackView.js:79)
in RCTView (at View.js:45)
in View (at Transitioner.js:215)
in Transitioner (at StackView.js:22)
in StackView (created by Navigator)
in Navigator (at createKeyboardAwareNavigator.js:12)
in KeyboardAwareNavigator (created by SceneView)
in SceneView (created by SwitchView)
in SwitchView (created by Navigator)
in Navigator (at createAppContainer.js:388)
in NavigationContainer (at routes.js:109)
in Routes (at App.js:51)
in RCTView (at View.js:45)
in View (at App.js:49)
in App (at renderApplication.js:35)
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:34)
When does it happen?
I’m using AreaChart in my App and when I remove it error is not there.
What platform?
- [ x ] iOS
- Android (Not checked)
React Native version: 0.59.0
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 20
- Comments: 15
@vikrantnegi i solved my problem: I updated to react-native-svg 9.3.3
react-native start --reset-cache
and it worked.@nethergrim Try updating the
react-native-svg package
to the latest version. It solved the problem for me.@marcorm It didn’t solve my problem. I’m still having the issue. Reset cache not working for me.
Had the same issue and @vikrantnegi fix worked. I updated react-native-svg to 9.3.7
I’ve got similar error with: “react”: “16.8.3”, “react-native”: “^0.59.0”, “react-native-svg”: “7.1.2”, “react-native-svg-charts”: “5.2.0”
@marcorm I update to 9.5.1 and worked fine too! react-native: 0.59.9 here.
Still facing issue after upgrading react-native-svg version to latest however my react-native version is 0.59.9 Any help would be appreciated.
@vikrantnegi what version of react-native-svg have you installed? Try the 9.3.3 and let us know…