Skip to content

How to optimize the app bundle size? #900

@SupriyaKalghatgi

Description

@SupriyaKalghatgi

What's the best way of optimizing the app bundle size when using NativeBase?

The biggest issue is the fonts, I'm not (at least explicitly) using any of them, aside from Ionicons, so there's potentially 9 megabytes of fonts being included that I don't use in my app.

Oh, and including the San Francisco font in the Android build is explicitly against the terms of the font license (and including it with the iOS build is unnecessary at best, and possible against the terms of the license too).

IMPORTANT NOTE: THE APPLE SAN FRANCISCO FONT IS TO BE USED SOLELY FOR CREATING MOCK-UPS OF USER INTERFACES TO BE USED IN SOFTWARE PRODUCTS RUNNING ON APPLE’S iOS, OS X OR tvOS OPERATING SYSTEMS, AS APPLICABLE.

Ref: NativeBase Forum

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions