NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

initialPage doesnt work in android

Open siddhesh-atd opened this issue 7 years ago • 6 comments

Issue Description

I have 4 tabs in android and want to display the 4th tab by default if a condition sets true.

"react-native": "^0.52.0", "native-base": "2.3.5",

Expected behaviour

The 4th tab should be the active tab (works this way in ios)

Actual behaviour

Opens the page with 1st tab active

Steps to reproduce

<Tabs prerenderingSiblingsNumber={4} initialPage={4} // works in ios

Is the bug present in both iOS and Android or in any one of them?

Android

Any other additional info which would help us debug the issue quicker.

@SupriyaKalghatgi - Can you look into this issue ?

siddhesh-atd avatar May 21 '19 09:05 siddhesh-atd

To display nth tab, we need to give initialPage={n-1}

Srishti-Sharma avatar Jul 12 '19 07:07 Srishti-Sharma

initialPage={n-1} is taking to nth Tab but it's not rendering the nth tab

uday5162 avatar Aug 01 '19 12:08 uday5162

It's rendering when i go to another tab and come back to this tab

uday5162 avatar Aug 01 '19 12:08 uday5162

To display nth tab, we need to give initialPage={n-1}

it's not work :(

ghost avatar Aug 06 '19 03:08 ghost

Please try with the latest version of NativeBase.

Srishti-Sharma avatar Aug 07 '19 12:08 Srishti-Sharma

Hi @siddhesh-atd , we hope its working with updated NativeBase. Closing for now. Let us know if the issue still persists.

hanykumar avatar Aug 31 '20 13:08 hanykumar