React-native-modal: A way to specify no animation

Created on 7 Jan 2017  路  4Comments  路  Source: react-native-modal/react-native-modal

is there a way to specify no animation? I would like to be able to have no animation (so it just appears) for showing the modal, and slide out for hiding the modal

question

Most helpful comment

Hey @stonepreston, that's a totally legit question.
I'm thinking about the best way to implement such a feature and there are two options at the moment that may fit:

  • Disable a specific animation when its timing is 0 (less declarative, more concise) - right now setting it to 0 will just trigger the default timing
  • Add a prop for each animation specifying if the animations should be enabled or not (more declarative, more verbose)

In the meanwhile you can set the timing to 1 and it will make the animation disappear (unless your eyes can catch the 1 ms animation :)).

All 4 comments

Hey @stonepreston, that's a totally legit question.
I'm thinking about the best way to implement such a feature and there are two options at the moment that may fit:

  • Disable a specific animation when its timing is 0 (less declarative, more concise) - right now setting it to 0 will just trigger the default timing
  • Add a prop for each animation specifying if the animations should be enabled or not (more declarative, more verbose)

In the meanwhile you can set the timing to 1 and it will make the animation disappear (unless your eyes can catch the 1 ms animation :)).

alright I am going to implement an animated modal in a bit, Ill let you know how it goes

@stonepreston I'm closing this, let me know if it worked for you :)

@mmazzarolo my eyes very very perfect :))
thanks u <3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dcarrot2 picture dcarrot2  路  4Comments

ChristianTucker picture ChristianTucker  路  4Comments

JoeCMorgan picture JoeCMorgan  路  3Comments

haveamission picture haveamission  路  3Comments

psycura picture psycura  路  4Comments