Repository navigation
55.0.0
Adopted Expo SDK versioning scheme. The major version now matches the Expo SDK version this package is built and tested against.
Breaking Changes
- Text: Removed
useColorSchemehook from the component. Text no longer subscribes to color scheme changes internally, which means it won't re-render on scheme changes unless the parent re-renders. - Text: Removed
secondaryprop. Pass secondary colors viastyle={{ color: '...' }}instead. - Text: Removed
colorprop. Pass colors viastyle={{ color: '...' }}instead. - Text: Removed all internal
useMemocalls. The component is now a stateless wrapper around React Native'sTextwith zero hooks.
Migration from 0.x
Before:
<Text color="#0066CC">Blue text</Text>
<Text secondary>Description text</Text>After:
<Text style={{ color: "#0066CC" }}>Blue text</Text>
<Text style={{ color: "#8E8E93" }}>Description text</Text>For dark/light mode support, use your own color scheme hook and pass colors through style:
const systemColors = useSystemColors();
<Text style={{ color: systemColors.text }}>Themed text</Text>