nandorojo / moti

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

Module '"moti/interactions"' has no exported member 'MotiPressable'. #262

Closed DaLukasDev closed 1 year ago

DaLukasDev commented 1 year ago

Is there an existing issue for this?

Current Behavior

As stated above when installing the latest Moti version my IDE throws the stated error. However it functions as it should only typescript is not happy with the exported types

Expected Behavior

'"moti/interactions"' should have an exported member "MotiPressable"

Steps To Reproduce

yarn add moti

import { MotiPressable, MotiPressableProps } from 'moti/interactions';

Versions

- Moti:^0.23.2
- Reanimated:~2.12.0
- React Native: 0.70.5

Screenshots

No response

Reproduction

/

nandorojo commented 1 year ago

i must have messed something up, does 0.22.x fix it?

DaLukasDev commented 1 year ago

Yes indeed, I downgraded to 0.22.x now and this is working fine. If I look at the index.d.ts from moti/interactions it is only exporting the types of the newly added svg logic.

nandorojo commented 1 year ago

thanks for the heads up, will be an easy fix

nandorojo commented 1 year ago

Fixed in 0.23.3