Open shaibusunnuma opened 5 months ago
I get the typescript error below when I switch tabs that have icons: TypeError: this._icon.setNativeProps is not a function (it is undefined)
I didn't get this error until I upgraded to expo sdk 50
Set any icon in the Tab. Eg. code
<TabsProvider defaultIndex={0}> <Tabs disableSwipe> <TabScreen label="Bookings" icon="book"> <Bookings /> </TabScreen> <TabScreen label="Subscriptions" icon="ticket"> <Subscriptions /> </TabScreen> </Tabs> </TabsProvider>
Tried debugging and the error seems to come from the function createIconSet in @expo/vector-icons
createIconSet
@expo/vector-icons
I confirm this bug in expo@50. the error produced when you add the "icon" option to the TabScreen component.For now, I've commented on the icon option until I find the problem and fix it.
+1
Current behaviour
I get the typescript error below when I switch tabs that have icons: TypeError: this._icon.setNativeProps is not a function (it is undefined)
Expected behaviour
I didn't get this error until I upgraded to expo sdk 50
How to reproduce?
Set any icon in the Tab. Eg. code
Preview
What have you tried so far?
Tried debugging and the error seems to come from the function
createIconSet
in@expo/vector-icons
Your Environment