Skip to content

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

Merged
Doberjohn merged 2 commits into
callstack:mainfrom
E-HAZMATs:patch-1
Oct 29, 2026
Merged

Doberjohn merged 2 commits into
callstack:mainfrom
E-HAZMATs:patch-1

Conversation

@E-HAZMATs

Copy link
Copy Markdown
Contributor

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.

E-HAZMATs and others added 2 commits August 30, 2026 10:29
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.
@Doberjohn
Doberjohn merged commit c2d8a61 into callstack:main Oct 29, 2026
8 checks passed
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.

2 participants