nandorojo / moti

🐼 The React Native (+ Web) animation library, powered by Reanimated 3.
https://moti.fyi
MIT License
3.9k stars 120 forks source link

RN editable={false} TextInput wrapped in MotiPressable unclickable 0.28.1 #338

Open faforus opened 2 months ago

faforus commented 2 months ago

Is there an existing issue for this?

Do you want this issue prioritized?

Current Behavior

React Native - a text input with editable={false} where data is displayed and generated through outside modal wrapped with MotiPressable can no longer be clicked in version 0.28.1. It appears as if the TextInput had higher z-index. It worked correctly in 0.21.0.

Expected Behavior

It should be clickable. It is only clickable if the hitslop is larger than the Input, so you can click on the sides.

Steps To Reproduce

Wrap TextInput with editable={false} in MotiPressable

Versions

- Moti:0.28.1
- Reanimated:3.6.2
- React Native:0.73.6

Screenshots

No response

Reproduction

      <MotiPressable
        onPress={modal.show}
      >
        <TextInput
          editable={false}
        />
      </MotiPressable>