Open nasiriyima opened 2 years ago
@nasiriyima the tab component might be needing a special svelte implementation. I think it was in svelte native when tabs were actually part of N. Can you go on discord in the svelte native channel (in svelte server) to discuss this?
@farfromrefug Thanks for the input. Can you kindly share the link to the svelte native discord server to me. I will really appreciate it thanks!
@nasiriyima https://discord.gg/VYzj972s
For anybody who needs this component in svelte native : this code is working.
Just there is an inversion here :
registerNativeViewElement("tabContentItem", () => TabStripItem);
registerNativeViewElement("tabStripItem", () => TabContentItem);
registerNativeViewElement("tabStripItem", () => TabStripItem);
registerNativeViewElement("tabContentItem", () => TabContentItem);
Which platform(s) does your issue occur on?
-Android -Android versions
emulator
Please, provide the following version numbers that your issue occurs with:
CLI: 8.1.5
Cross-platform modules: 8.1.5
Runtime(s): 8.1.1
Plugin(s):
Please, tell us how to recreate the issue in as much detail as possible.
npm install --save @nativescript-community/ui-material-tabs
Trace.addCategories(DomTraceCategory); Trace.enable();
registerNativeViewElement("tabs", () => Tabs); registerNativeViewElement("tabStrip", () => TabStrip); registerNativeViewElement("tabContentItem", () => TabStripItem); registerNativeViewElement("tabStripItem", () => TabContentItem);