Skip to content

SVG component becomes transparent when goBack #773

Closed
@hehex9

Description

@hehex9

Description

There is an obvious UI blinking that occurs when returning from a screen that uses svg (react-native-svg), svg views in the child screen will become transparent and then disappear with the screen. (check the video)

It happens in navigators created by native-stack (createNativeStackNavigator) @react-navigation/stack works just fine in this scenario.

Not sure if it's related to react-native-svg.

(only happens on Android)

Screenshots

Screenrecord-2021-01-11-15-37-14-455.mp4

Steps To Reproduce

check the snack below

Expected behavior

SVG View should be visible util the screen is completely disappear (pop to bottom / right)

Actual behavior

will becomes transparent when navigating back to its parent screen

Snack or minimal code example

https://snack.expo.io/@hehex/native-stack-svg-blink

Package versions

  • React: 16.13.1
  • React Native: 0.63.4
  • React Native Screens: 2.16.1

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