From 046d5f898e542ee614d4896e8fb106817c922e71 Mon Sep 17 00:00:00 2001 From: E-HAZMATs Date: Sun, 30 Aug 2026 10:29:01 +0300 Subject: [PATCH] fix: add missing Platform import in MD3 font section 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. --- docs/5.x/docs/guides/fonts.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/5.x/docs/guides/fonts.md b/docs/5.x/docs/guides/fonts.md index 906159f99a..921c478bc0 100644 --- a/docs/5.x/docs/guides/fonts.md +++ b/docs/5.x/docs/guides/fonts.md @@ -418,6 +418,7 @@ import { MD3LightTheme, PaperProvider, } from 'react-native-paper'; +import { Platform } from 'react-native'; import App from './App'; const fontConfig = {