From 5306aba6e1d2adcf4f0178d86b55aafce148eb42 Mon Sep 17 00:00:00 2001 From: akhil-geekyants Date: Tue, 5 Jun 2018 19:22:59 +0530 Subject: [PATCH] Fix - Blinking of swipelist examples on back button press. --- src/App.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index d9a773bc8..37fdaedc7 100644 --- a/src/App.js +++ b/src/App.js @@ -121,6 +121,19 @@ import Segment from "./screens/segment"; import NHToast from "./screens/toast/"; import Actionsheet from "./screens/actionsheet"; +const SwipeListNavigator = StackNavigator({ + ListSwipe: { screen: ListSwipe }, + BasicListSwipe: { screen: BasicListSwipe }, + SwipeRowCustomStyle: { screen: SwipeRowCustomStyle }, + MultiListSwipe: { screen: MultiListSwipe }, +}, + { + headerMode: "none", + cardStyle: { + opacity: 1 + } + }); + const Drawer = DrawerNavigator( { Home: { screen: Home }, @@ -137,7 +150,7 @@ const Drawer = DrawerNavigator( NHIcon: { screen: NHIcon }, NHLayout: { screen: NHLayout }, NHList: { screen: NHList }, - ListSwipe: { screen: ListSwipe }, + ListSwipe: { screen: SwipeListNavigator }, NHRadio: { screen: NHRadio }, NHSearchbar: { screen: NHSearchbar }, NHSpinner: { screen: NHSpinner },