naoufal / react-native-safari-view

A React Native wrapper for Safari View Controller.

Home Page:https://www.npmjs.com/package/react-native-safari-view

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Animate view from different direction

deverstalmage opened this issue · comments

I noticed that in your readme you show an animated .gif of the Safari view sliding in from the bottom, whereas when I call SafariView.show() the view slides in from the right hand side. Is there a way to configure which direction the view animates in from?

Hey @deverstalmage. I should probably update the gif.

That used to be the default animation. But in 9.2, Apple updated the Controller so that it slides in from the right, which enabled swiping to dismiss.

The module doesn't currently support specifying the entry animation, but I'd encourage you to contribute if it's something you need for your app.

@deverstalmage Added to version v1.1.0, thanks to @zachgibson