mirror of
https://github.com/expo/examples.git
synced 2026-11-15 03:48:13 -10:00
24 lines
469 B
JavaScript
24 lines
469 B
JavaScript
import { Platform } from "react-native";
|
|
|
|
import { Text } from "./Themed";
|
|
|
|
export function MonoText(props) {
|
|
return (
|
|
<Text
|
|
{...props}
|
|
style={[
|
|
props.style,
|
|
{
|
|
// The "code" font is different on each platform.
|
|
fontFamily: Platform.select({
|
|
default: "Courier",
|
|
ios: "Courier New",
|
|
android: "monospace",
|
|
}),
|
|
fontWeight: "500",
|
|
},
|
|
]}
|
|
/>
|
|
);
|
|
}
|