Skip to content

[0.0.18] invalid value passed to interaction #185

Closed
@hirbod

Description

Hi @nandorojo,

tried the Canary and so far, everything was working as expected without breaking changes.
While I tried your release-note example, which was looking dope, I encountered this issue:

<MotiPressable>
  {(interaction) => {
    return (
      <MotiView
        animate={() => {
          'worklet'

          const { pressed, hovered } = interaction.value

          return { opacity: pressed ? 0.9 : 1 }
        }}
      />
    )
  }}
</MotiPressable>

IMG_8611

Some informations:

  • react-native-reanimated v2.5.0
  • react-native-gesture-handler v2.1.1
  • moti v0.18.0-alpha.10

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions