PandaText for Expo
The React Native component in an Expo development build, with its config plugin.
Get started
Install the package, then load your fonts, create a view and set the text. Package sources come with early access.
Expo
Requires: An Expo development build (not Expo Go).
1 Install
Install the package:
npx expo install @pandatext/react-native expo-fontAdd its config plugin, and your fonts, to app.json:
{
"expo": {
"plugins": [
"@pandatext/react-native",
["expo-font", { "fonts": ["./fonts/NotoSans-Regular.ttf", "./fonts/NotoSans-Bold.ttf"] }]
]
}
}Then build the app with npx expo run:ios or npx expo run:android.
2 Create the view
The same React Native component, in your Expo app.
import { PandaTextView } from "@pandatext/react-native";
<PandaTextView
style={{ flex: 1 }}
fonts={[["NotoSans-Regular", "NotoSans-Bold"]]}
text="Hello PandaText"
/>API
After setup, every call does the same job on every platform. Open the Editor API for Expo.
Uses the same API column as React Native.