Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect position of components during entering layout animation #5864

Open
tomekzaw opened this issue Apr 3, 2024 · 0 comments
Open

Incorrect position of components during entering layout animation #5864

tomekzaw opened this issue Apr 3, 2024 · 0 comments
Labels
Area: Layout Animations Maintainer issue Issue created by a maintainer

Comments

@tomekzaw
Copy link
Member

tomekzaw commented Apr 3, 2024

Description

When a component is placed near the bottom edge of the screen and has an entering animation, it appears with a delay. In fact, the entering animation is running but the placement of the component is incorrect (the element is simply below the bottom edge of the screen).

Android iOS
android.mp4
ios.mp4

Steps to reproduce

The problem happens on 6dc1e6f

Paste the following code in EmptyExample.tsx

import { StyleSheet, Text, View } from 'react-native';
import Animated, { FadeIn } from 'react-native-reanimated';
import React from 'react';

export default function Reproducer() {
  return (
    <View style={styles.container}>
      <View style={styles.fill} />
      <Animated.View entering={FadeIn.duration(1000)}>
        <Text style={styles.text}>Some text</Text>
      </Animated.View>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  fill: {
    flex: 1,
  },
  text: {
    fontSize: 50,
  },
});

Make sure that the repro is placed inside a native screen.

Snack or a link to a repository

nope

Reanimated version

3.8.1

React Native version

0.74.0-rc.4

Platforms

Android, iOS

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Paper (Old Architecture)

Build type

Debug app & dev bundle

Device

iOS simulator

Device model

iPhone 15 Pro

Acknowledgements

Yes

@tomekzaw tomekzaw added Maintainer issue Issue created by a maintainer Area: Layout Animations labels Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Layout Animations Maintainer issue Issue created by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant