Nativebase: animationEnabled = false props react-native-router-flux

Created on 10 May 2018  路  4Comments  路  Source: GeekyAnts/NativeBase

react-native-router-flux lib have animationEnabled props for change to exactly tab when user interact.
Incredible performance apps. Does NativeBase have props similar?

Most helpful comment

@NguyenPhatBG you can use scrollWithoutAnimation props of <Tabs/>. Attaching a gif.

Gif

scrollwithoutanimation

All 4 comments

@NguyenPhatBG you can check the default animation provided by NativeBase tabs here in docs. If you wan't to disable swipe, you can set the Tabs prop locked={true}

https://github.com/GeekyAnts/NativeBase/issues/1676
locked={true} work fine! But it only lock ability (Disable swipe)
I had try it before, But it's not my mean! I mean that the content while we change tab, it not pass through another content tabs, like animationEnabled = false props react-native-router-flux :)
Can you provide solution for this task !

@NguyenPhatBG you can use scrollWithoutAnimation props of <Tabs/>. Attaching a gif.

Gif

scrollwithoutanimation

Thanks @akhil-geekyants , It's work now! Have a great day! 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muthuraman007 picture muthuraman007  路  3Comments

maphongba008 picture maphongba008  路  3Comments

natashache picture natashache  路  3Comments

inv2004 picture inv2004  路  3Comments

chetnadaffodil picture chetnadaffodil  路  3Comments