Skip to content

[question]: does the web bundle include imports like react-navigation or safe-area? #42

Answered by nandorojo
vbylen asked this question in Q&A
Discussion options

You must be logged in to vote

good question. I don’t think so. I’ve run tests with next’s webpack bundle analyzer and react navigation doesn’t show as getting imported anywhere / affecting the page sizes. i recommend confirming this with the next bundle analyzer by importing / not importing the safe area library and comparing the difference. i made sure to tree shake solito for each platform as much as i could. it’s just up to you to make sure that you don’t import for the wrong platform (notice the .web files in some places to achieve this)

hope that helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nandorojo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #41 on April 08, 2022 16:51.