Skip to content

fix: add missing Platform import in MD3 font section - #5085

Open
E-HAZMATs wants to merge 1 commit into
callstack:mainfrom
E-HAZMATs:patch-1
Open

fix: add missing Platform import in MD3 font section#5085
E-HAZMATs wants to merge 1 commit into
callstack:mainfrom
E-HAZMATs:patch-1

Conversation

@E-HAZMATs

Copy link
Copy Markdown

Motivation

The customVariant example under "Material Design 3 -> Using configureFonts helper" uses Platform.select() but never imports Platform from react-native. Copy-pasting the code throws ReferenceError: Platform is not defined.

Related issue

None.

Test plan

Reproduced the ReferenceError by running the snippet as originally written (Platform used without import). Confirmed it's fixed by adding the import.

The customVariant example under "Material Design 3 -> Using configureFonts helper" uses Platform.select() but never imports Platform from react-native. This throws a "ReferenceError: : Platform is not defined".

Added the missing import.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant