question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade to react-native 0.59 breaks react-native-svg

See original GitHub issue

Steps: Upgrade to react-native 0.59.0, build and run App, and get the following:

TypeError: method.bind is not a function. (In 'method.bind((0, _assertThisInitialized2.default)(_this))', 'method.bind' is undefined)

This error is located at:
    in Svg (at NumberCircle.js:7)
    in NumberCircle (at Overview.js:12)
    in RCTView (at View.js:45)
    in View (at Overview.js:10)
    in Overview (at LandingScreen.js:238)
    in RCTView (at View.js:45)
    in View (at LandingScreen.js:237)
    in RCTView (at View.js:45)
    in View (at LandingScreen.js:220)
    in LandingScreen (at SceneView.js:9)
    in SceneView (at StackViewLayout.js:574)
    in RCTView (at View.js:45)
    in View (at createAnimatedComponent.js:151)
    in AnimatedComponent (at StackViewCard.js:12)
    in Card (at createPointerEventsContainer.js:28)
    in Container (at StackViewLayout.js:612)
    in RCTView (at View.js:45)
    in View (at StackViewLayout.js:470)
    in RCTView (at View.js:45)
    in View (at StackViewLayout.js:469)
    in StackViewLayout (at withOrientation.js:30)
    in withOrientation (at StackView.js:63)
    in RCTView (at View.js:45)
    in View (at Transitioner.js:169)
    in Transitioner (at StackView.js:21)
    in StackView (at createNavigator.js:59)
    in Navigator (at createKeyboardAwareNavigator.js:11)
    in KeyboardAwareNavigator (at createNavigationContainer.js:376)
    in NavigationContainer (at App.js:60)
    in RCTView (at View.js:45)
    in View (at Root.js:13)
    in Root (at connectStyle.js:384)
    in Styled(Root) (at App.js:59)
    in Sidekick (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)
...

IMG_0919

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:20

github_iconTop GitHub Comments

7reactions
kg-currenxiecommented, Mar 30, 2019

also had missing “RNSVGVectorEffect.h” downgrading to 9.2.4 worked for me

5reactions
bondparkerbondcommented, Mar 14, 2019

@marcorm I think something like the following should help: rm -rf node_modules npm install npm start – --reset-cache

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade to react-native 0.59 breaks react-native-svg #967
Simply go to the file in XCode, add an enter to it and save it. Then it automagically works. All reactions.
Read more >
Upgrading to new versions - React Native
Upgrading to new versions of React Native will give you access to more APIs, views, developer tools and other goodies. Upgrading requires a ......
Read more >
React Native version mismatch 0.59.1 > 0.61.2 - Stack Overflow
Yes I've used react-native upgrade to update to the latest version. If I execute the command again it returns: Specified version "0.61.2" is ......
Read more >
react-native-svg - npm
react -native-svg provides SVG support to React Native on iOS, Android, macOS, Windows, and a compatibility layer for the web.
Read more >
React Native Upgrade Helper
Useful content for upgrading ... React Native 0.60 includes Cocoapods integration by default, AndroidX support, auto-linking libraries, a brand new Start ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found