web-ridge / react-native-paper-tabs

Smooth and fast cross platform Material Design Tabs for React Native Paper
https://reactnativepapertabs.com
MIT License
199 stars 35 forks source link

Error when using a single TabScreen: Bad output range #61

Closed edcaron closed 8 months ago

edcaron commented 1 year ago

Current behaviour

When there is only one TabScreen, this error is thrown: Bad output range

Expected behaviour

When there is only one TabScreen, only this one page is to be shown

How to reproduce?

https://snack.expo.dev/@edcaron/react-native-paper-tabs-single-page

Preview

photo_2023-09-22_11-11-10

What have you tried so far?

adding one more page works

Your Environment

software version
android 10
react-native 0.71.8
react-native-paper 5.9.1
node x.x.x
npm or yarn x.x.x
expo sdk 48.0.0.0
RichardLindhout commented 8 months ago

Please provide a snack

edcaron commented 8 months ago

@RichardLindhout

https://snack.expo.dev/@edcaron/react-native-paper-tabs-single-page

it was already on the issue description, on the 'How to reproduce?' section

RichardLindhout commented 8 months ago

Oops sorry, looking into it!

RichardLindhout commented 8 months ago

Fixed, thanks for your snack!