Comments (3)
Update:
I realized that even without adding space or margin between items, the bug is still present. I have updated the reproducible example.
Wrapping it in another view will fix the issue on iOS but it is still broken on Android.
from react-native-reanimated.
Hi @matinzd, regarding Android issue I cannot reproduce it with your example.
Regarding iOS issue I've take a look on your repro and I've managed to fix it by providing additional container for all your components rendered directly inside SafeAreaView
(not only for the Animated.View
itself). It is because SafeAreaView is adding padding which is somehow making animated component to jump afer animation is completed. We will take a look on this behavior closer.
Please check my code
import { Text, SafeAreaView, StyleSheet, View } from 'react-native';
import Animated, { FadeIn } from 'react-native-reanimated';
import { Card } from 'react-native-paper';
import AssetExample from './components/AssetExample';
const animation = FadeIn.delay(1000).duration(2000);
export default function App() {
return (
<SafeAreaView style={{flex: 1}}>
<View style={styles.container}>
<Text style={styles.paragraph}>
Test text to expand the size between
</Text>
<Text style={styles.paragraph}>
Test text to expand the size between
</Text>
<Animated.View entering={animation}>
<Card>
<AssetExample />
</Card>
</Animated.View>
</View>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: {
justifyContent: 'center',
backgroundColor: '#ecf0f1',
},
paragraph: {
fontSize: 18,
fontWeight: 'bold',
textAlign: 'center',
},
});
from react-native-reanimated.
We've decided to add a warning message when animated component is rendered directly inside SafeAreaView
. Also, this will be added to Troubleshooting section in our docs too.
from react-native-reanimated.
Related Issues (20)
- Flickering in animation after updating react native HOT 11
- 1st item in an inverted list is no longer animated after a while with itemLayoutAnimation HOT 1
- expo 51.0.7 CRASH [TypeError: animatedRef.getTag is not a function (it is undefined)] HOT 3
- useAnimatedKeyboard break navigation color HOT 5
- Found Error TypeScript when run yarn tsc HOT 2
- Task :react-native-reanimated:buildCMakeRelWithDebInfo[armeabi-v7a] FAILED HOT 4
- Entering and/or layout animation flickering when SafeAreaView is a first parent of an animated component HOT 1
- > java.net.SocketException: Connection reset HOT 1
- iOS build faied: ld: Undefined symbols HOT 3
- SVG Polygon Animation not working HOT 1
- [3.12.0] TypeError: property is not configurable on useAnimatedStyle hook HOT 9
- useSharedValue `modify` does not exist, but shows in docs HOT 1
- Animated component issue: touchables and TextInputs inside the Animated.ScrollView are not responsive HOT 3
- web: AnimatedComponent raises a deprecation warning for findDOMNode in v3.12.0 HOT 4
- React Native Reanimated Not Responsive HOT 3
- Invalid `RNReanimated.podspec` file: [Reanimated] Unsupported React Native version. Please use 0.71 or newer. HOT 3
- Android build failure v3.12.0 HOT 7
- Impossible to animate any SVG color on android HOT 5
- 3.12.0 crashes with 'property is not configurable' HOT 9
- Performance regression or race condition between UI and JS threads
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-reanimated.