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

Components inside <Transition> renders 4+ times in a row #206

Open
vasilich6107 opened this issue Jul 16, 2019 · 0 comments
Open

Components inside <Transition> renders 4+ times in a row #206

vasilich6107 opened this issue Jul 16, 2019 · 0 comments

Comments

@vasilich6107
Copy link

Hi. Thanks for the library. I'm trying to use it for animation. But I have a pretty complex component to animate. Before animation occurs the component inside component re-renders 4+ times and only after that animation starts.

Here is a screenshot https://tppr.me/MxskE

To reproduce that just replace <Text>Screen</Text> inside AppearingElements.js to

class ScreenScale extends Component<{}> {
    shouldComponentUpdate(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): boolean {
        return false;
    }

    render() {
        console.log('ScreenScale render called');
        return (
            <View style={styles.textContainer}>
                <Text>Screen</Text>
            </View>
        );
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant