Error property 'left' is not supported by native animated module when using swipe
See original GitHub issue<Modal isVisible={this.state.isTimelineOpen}
onSwipe={() => this.setState({isTimelineOpen: false})} swipeDirection="up">
<Text>Test<Text/>
</Modal>
Keeping it as simple as the above, I’m getting an error that says "property left is not supported by native animated module. Any ideas?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:18
- Comments:27 (12 by maintainers)
Top Results From Across the Web
React-native Animation.event style property is not supported
This error comes from validateTransform function inside React Native lib.You can check the TRANSFORM_WHITELIST in NativeAnimatedHelper for the ...
Read more >Error property 'left' is not supported by native animated module when ...
Error property 'left' is not supported by native animated module when using swipe.
Read more >react-native-modal - npm
An enhanced, animated, customizable React Native modal. The goal of react-native-modal is expanding the original React Native <Modal> component ...
Read more >Animations - React Native
Animated focuses on declarative relationships between inputs and outputs, with configurable transforms in between, and start / stop methods ...
Read more >Native Stack Navigator | React Navigation
To use this navigator, ensure that you have @react-navigation/native and its dependencies (follow this guide), then install @react-navigation/native-stack : npm ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This is not due to react native limitations. This is a problem because
getLayoutis being used which animates theleftandtopstyle properties of a view which are not supported byuseNativeDriver. an alternative togetLayoutexists calledgetTranslateTransform(See here) that animatestranslateXandtranslateYinstead oftopandleftbut since react-native-animatable animations are using those properties to pull off the in/out transitions and react-native-animatable will override the transform on the view when you try and set the transform explicitly this is not currently possible.you can use
to simulate animation for the left positioning if you don’t have strict restrictions about using
leftproperty