Skip to content

FeatureHighlight gives an error on react native 0.72 #2653

Closed
@Solhea

Description

@Solhea

Description

After I upgrade react native from 0.71.10 to 0.72.1, the FeatureHighlight component gives an error only on Android. iOS is working fine.

Related to

  • Components
  • Demo
  • Docs
  • Typings

Steps to reproduce

Steps to reproduce the behavior:

  1. Add FeatureHighlight to a screen
  2. Run the app on Android

Expected behavior

Should show FeatureHighlight on the screen as an iOS device does.

Actual behavior

Gives a Render Error.

More Info

Code snippet

<FeatureHighlight
        visible={showFeatureHighlight && !loading && isFocused}
        title={strings.plannedButtonTitle}
        titleStyle={{ fontFamily: "Poppins-Medium" }}
        message={strings.plannedButtonMessage}
        messageStyle={{ fontFamily: "Poppins-Regular" }}
        getTarget={() => plannedButtonRef}
        confirmButtonProps={{
          label: strings.gotIt,
          color: colors.primary,
          labelStyle: { fontFamily: "Poppins-Regular" },
          onPress: () => {
            setShowFeatureHighlight(false);
            dispatch(addCompletedTutorial(tutorialTypes.transfersScreen));
          },
          style: { backgroundColor: colors.yellow, borderRadius: 5, borderWidth: 1, borderColor: colors.borderGrey },
        }}
        borderRadius={5}
      />

Screenshots/Video

Screenshot_1688394269

Environment

  • React Native version: 0.72.1
  • React Native UI Lib version: 7.5.0

Affected platforms

  • Android
  • iOS
  • Web

Metadata

Metadata

Assignees

No one assigned

    Labels

    buga bug in one of the componentswontfix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions