Reputation: 1745
I am having a strange issue using React Native Reanimated library. I am trying to create a component that is split in the middle and will shrink to the left if a prop is set.
I have a snack example here https://snack.expo.dev/@thunderbeans/tactless-blue-cake?platform=android
To reproduce issue :
1). Run link in android platform.
2). Click button, nothing happens.
To fix : Change line 18 in App.js to the following
<Button title={expanded ? "Shrink" : "Expand"} onPress={() => setExpanded(!expanded)} />
I assume it has something to with the expanded state but I can't see why that would affect the underlying component.
Upvotes: 0
Views: 10