You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked at the Yoda and the default HomeScreen Example, it's quite clear to me that the <TabbedHeaderPager /> component has a tabs prop that we can pass the TABS array of tab objects (title and description) and then we can map the items inside the child of the component like so (correct me if i'm wrong):
export const text = `
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque facilisis, tellus nec blandit iaculis, velit mi cursus nibh, semper ullamcorper sem eros blandit lacus. Quisque placerat vitae ex eu vestibulum. Phasellus a nibh a eros vestibulum venenatis ut eu ante. Mauris at ligula a mi molestie consequat non ut ipsum. Nulla iaculis sem diam, nec mollis nisi posuere quis. Sed gravida elementum ipsum quis elementum. Integer scelerisque urna id orci vehicula, id rutrum nisi tincidunt. Vivamus accumsan dolor ut ornare interdum. Vestibulum lacus quam, tempus eget volutpat id, rhoncus ac sapien. Nunc elit mauris, vestibulum in cursus eget, elementum vel ligula. Proin ultrices nibh neque, vitae lobortis massa sodales ut. Praesent a nisl vitae tortor pretium maximus. Sed euismod cursus massa et dictum. Nullam quis massa eleifend est semper ornare. Suspendisse justo sem, dictum id convallis in, bibendum et nisl. Quisque scelerisque augue nec venenatis ornare.
Nulla facilisi. Vestibulum tempor varius dolor, non condimentum lorem lacinia eu. Suspendisse dictum luctus facilisis. Suspendisse vehicula eget justo vitae viverra. Aenean eu augue quis massa faucibus auctor et ut metus. Praesent tincidunt risus ut ex convallis, non aliquam tortor euismod. Vestibulum congue, lorem vel vulputate tempus, enim magna eleifend orci, id semper diam orci at lorem. Curabitur eget metus faucibus neque facilisis scelerisque.'
...
`;
Therefore, my main question is How to implement "Scrollable Tabs" like TabbedHeaderPager (Yoda Example) with StickyHeaderScrollView / Custom Header (Sims Example) ?
Not sure if it should be a "feature request" to make the implementation more like TabbedHeaderPager or another implementation with react-native-tab-view (https://reactnavigation.org/docs/tab-view/) (I tried this but does not work so far) , would like to seek help on the implementation because I really like the SImScreen example due to the image stretches to the top of the screen and into the notch and with blur-effect.
Thank you in advance 🙏🏻
The text was updated successfully, but these errors were encountered:
Feature request
I looked at the Yoda and the default HomeScreen Example, it's quite clear to me that the
<TabbedHeaderPager />
component has atabs
prop that we can pass the TABS array of tab objects (title and description) and then we can map the items inside the child of the component like so (correct me if i'm wrong):in Yoda's Screen
data.ts
:and in YodaScreen
index.tsx:
then we get the nice "Scrollable Tabs":
I am wondering how will we implement this for component / Custom Header (Sims Example):
Looking at the SimsScreen example code snippet at
SimsScreen/index.tsx
:there is a
renderTabs
prop but it seems like a prop to just render how the Tabs will look like but is disconnected from the content of the tabs:in
Tabs.tsx
:and in
SimsScreen/index.tsx
the{text}
displayed is just a disconnected static text coming fromSimsScreen/data.ts
:SimsScreen/index.tsx
:SimsScreen/data.ts
:Therefore, my main question is How to implement "Scrollable Tabs" like TabbedHeaderPager (Yoda Example) with StickyHeaderScrollView / Custom Header (Sims Example) ?
Not sure if it should be a "feature request" to make the implementation more like TabbedHeaderPager or another implementation with react-native-tab-view (https://reactnavigation.org/docs/tab-view/) (I tried this but does not work so far) , would like to seek help on the implementation because I really like the SImScreen example due to the image stretches to the top of the screen and into the notch and with blur-effect.
Thank you in advance 🙏🏻
The text was updated successfully, but these errors were encountered: