showtime-xyz / showtime-tab-view

A react native TabView component that support collapse header and custom refresh control, powered by Reanimated & GestureHandler. Join Showtime:
https://showtime-xyz.notion.site/Join-Showtime-Public-fa6282938e284134b302184062d7e329
MIT License
219 stars 23 forks source link

ReferenceError: Property '_measure' doesn't exist, js engine: hermes #22

Open god-zhang opened 4 months ago

god-zhang commented 4 months ago

Hi, Thank you for this package. That Great!

I encountered an issue and hope for assistance. Could you please take a look?

I copied the code for 'tab-flash-list' example, and when I run it, I encounter this error. How should I resolve it? @alantoa

a289459798 commented 4 months ago

a same

god-zhang commented 4 months ago

a same

The issue wasn't resolved, so I switched to using react-navigation.

alantoa commented 4 months ago

Have you passed the index to TabFlashList? and what are the versions of your reanimated, gesture, and tab-view using?

god-zhang commented 4 months ago

Have you passed the index to TabFlashList? and what are the versions of your reanimated, gesture, and tab-view using?

"react-native-tab-view": "^3.5.2", "react-native-reanimated": "~3.6.2", "react-native-gesture-handler": "~2.14.0",

And my project was created using Expo.

alantoa commented 4 months ago

https://github.com/showtime-xyz/showtime-tab-view/tree/main/example Can you please run this example to see if it works for you? Basically, their versions are the same. If this example doesn't work for you let me know.

a289459798 commented 4 months ago

a same

The issue wasn't resolved, so I switched to using react-navigation.

How to use header?

god-zhang commented 4 months ago

https://github.com/showtime-xyz/showtime-tab-view/tree/main/example Can you please run this example to see if it works for you? Basically, their versions are the same. If this example doesn't work for you let me know.

My Expo SDK version is 50. The example in your response, which uses SDK 48, can be launched successfully, but it doesn't work with my SDK 50. 001957CB

god-zhang commented 4 months ago

a same

The issue wasn't resolved, so I switched to using react-navigation.

How to use header?

You can refer to this link https://reactnavigation.org/docs/material-top-tab-navigator. If you want to customize the header, you can do it like this: `

<Tab.Navigator tabBar={props => <MyTabBar {...props} />}> {...} </Tab.Navigator> `

a289459798 commented 4 months ago

a same

The issue wasn't resolved, so I switched to using react-navigation.

How to use header?

You can refer to this link https://reactnavigation.org/docs/material-top-tab-navigator. If you want to customize the header, you can do it like this: <MyHeader /> <Tab.Navigator tabBar={props => <MyTabBar {...props} />}> {...} </Tab.Navigator>

I need renderScrollHeader and minHeaderHeight

god-zhang commented 4 months ago

a same

The issue wasn't resolved, so I switched to using react-navigation.

How to use header?

You can refer to this link https://reactnavigation.org/docs/material-top-tab-navigator. If you want to customize the header, you can do it like this: <MyHeader /> <Tab.Navigator tabBar={props => <MyTabBar {...props} />}> {...} </Tab.Navigator>

I need renderScrollHeader and minHeaderHeight

I'm sorry for the misunderstanding. I haven't used this approach before. Actually, I want to use this package specifically for its custom pull-to-refresh in a list. I think you can try "nested scrolling."

a289459798 commented 4 months ago

I'm sorry for the misunderstanding. I haven't used this approach before. Actually, I want to use this package specifically for its custom pull-to-refresh in a list. I think you can try "nested scrolling."

thanks