#Platform styles

Bumbag Native enables you to specify platform-specific styling on any component.

In the example below, the Box will appear blue on the web, green on iOS, and red on Android.

Editable example

You can also use the native attribute to target the native environment (iOS or Android).

Editable example

#Grouping by platform

It is also possible to group style props by platform if the props are mutually exclusive:

Editable example
On this page
Copyright © 2021 Jake Moxey