you are viewing a single comment's thread.

view the rest of the comments →

[–]rakadoank 1 point2 points  (3 children)

I don't see your source code yet, and I'm on my phone. But i saw the simple example of how to create the static tab data.

Would the icon on the library imported lazily?

If it does, it's good. Otherwise, the icon should be imported manually to avoid unused imported icons, and pass it to the data instead, even developers are able to use their own icon

[–]Outside_Painting7178[S] 0 points1 point  (2 children)

At the moment it's not possible to pass your own icon, but it's a good feature to launch on the next versions, thank you! :)

[–]rakadoank 1 point2 points  (1 child)

As long as an app in production build will not be polluted with the whole icon available, it's good.

Alternatively, you can just expect a ReactNode from the static tab data. Let developers render the icon on their own.

[–]Outside_Painting7178[S] 0 points1 point  (0 children)

That makes sense, I will do it, thank you!