Skip to content
This repository was archived by the owner on Jul 9, 2026. It is now read-only.
This repository was archived by the owner on Jul 9, 2026. It is now read-only.

RNSVGPath Crash on Start of Example App #1703

Closed

Description

@cameronvoell

Describe the bug
Red banner on startup in the example app on Android.

To Reproduce
Steps to reproduce the behavior:

  1. Start the example gutenberg-mobile Example App.
  2. Notice the red banner mentioning RNSCGPath, seen in the screenshot below.

Screenshots
image

Additional context
This error was showing up on branches/commits that were previously working, and is likely related to a change in the build environment/workflow. This error is showing on Android only.

Activity

  1. mchowning commented on Dec 20, 2019

    @mchowning
    Contributor

    I believe this error is occurring because react-native-svg is dynamically pulling in the latest available RN version in its build.gradle file:

     implementation 'com.facebook.react:react-native:+
    

    If I replace that with

    implementation "com.facebook.react:react-native:0.59.0"
    

    the problem goes away. One important qualifier is that I had to build with ./gradlew clean installWasabiDebug --no-build-cache to get the fix to take effect. Anything less and the error would remain.

    Of course, we don't want to hardcode the RN version, and it actually looks like we may already have that addressed on the master branch of our react-native-svg fork:

    implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
    

    but we aren't using that in gutenberg-mobile, and I havne't had a chance to test that out.

  2. mchowning commented on Dec 20, 2019

    @mchowning
    Contributor

    Although this issue is only currently causing us trouble in react-native-svg, we should probably lock down the RN version for all of our forked RN libraries so they don't cause us similar problems in the future (for example).

  3. cameronvoell commented on Dec 20, 2019

    @cameronvoell
    ContributorAuthor

    Although this issue is only currently causing us trouble in react-native-svg, we should probably lock down the RN version for all of our forked RN libraries so they don't cause us similar problems in the future (for example).

    We have at least one report (thanks @kmdupr33) that after react-native-svg is fixed that we run into a problem with react-native-video almost immediately afterwards. Our fork for that video library already has the safeExtGet code mentioned above in its gradle file.

    So basically I agree @mchowning we should try and address the unspecified versions all at once, and likely using safeExtGet, but double check how our reactNativeVersion is being populated.

  4. added a commit that references this issue on Dec 20, 2019
    727b03d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions