3

I am currently using an example from here: https://facebook.github.io/react-native/docs/modal.html

While I can edit the animationType={"slide"} it seems to be transitioning very slow.

Is there a way to edit the transition speed of the slide?

2 Answers 2

8

For anyone out there, its actually Xcode's issue

do cmnd + T and it will return to normal.

Simulator slow-motion animations are now on?

0

With library react-native-modal you can specify the duration of the In and out Animation

<Modal
        hasBackdrop={true}
        backdropOpacity={0.6}
        backdropColor="#000000"
        hideModalContentWhileAnimating={true}
        useNativeDriverForBackdrop={true}
        useNativeDriver={true}
        animationInTiming={1}
        animationOutTiming={1}
        backdropTransitionInTiming={1}
        backdropTransitionOutTiming={1}
        isVisible={isVisible}
        onBackdropPress={() => {
            closingFunc();
        }} />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.