Skip to content

NaN Causes app to crash #147

Open
Open

Description

@rililive

I'm getting this error where the attempt to place the tour modal returns NaN for the left positioning. I'm working on ios with react-native@0.74.2

Screenshot 2024-06-27 at 12 28 50 PM

Activity

  1. rililive commented on Jun 27, 2024

    @rililive
    Author
  2. tragicmj commented on Aug 9, 2024

    @tragicmj

    I am facing the same issue, did anyone found any fix. The solution is mentioned in the above comment is a bit complex

  3. thonyromes commented on Sep 13, 2024

    @thonyromes

    Same issue on react native 0.75.2 when I wrap my component with a <View />

  4. Horley123 commented on Sep 18, 2024

    @Horley123

    I have this same problem in react native 0.75.2 only on ios

  5. thonyromes commented on Sep 18, 2024

    @thonyromes

    Here is a very temporary fix, please switch back once a new version is out 🙏.

    I noticed when I forked the current main, the issue seems to have been fixed.

    Although, I also added a hook useSpotlightStep you can use directly to create a custom AttachStep wrapper and also a SpotlightStep with slightly different implementation.

    Add this to your package.json. I forked the current main, then created a new repo just for the package.
    "react-native-spotlight-tour": "github:thonyromes/react-native-spotlight-tour-nativewind",

  6. Horley123 commented on Sep 18, 2024

    @Horley123

    Obrigado @thonyromes, funcionou aqui pra min.

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