Warning
This is a work in progress. Use with caution.
Native text component that enables text outline/stroke in React Native.
npm install react-native-outlined-text
import { OutlinedTextView } from 'react-native-outlined-text';
// ...
<OutlinedTextView outlineColor="#000000" outlineWidth={5}>
This text is outlined
</OutlinedTextView>;
OutlinedTextView
extends React Native's core Text
component and adds two new props to it.
Prop Name | Type | Required | Default Value |
---|---|---|---|
outlineColor | ColorValue | true | N/A |
outlineWidth | number | false | 2 |
All the remaining props are same as Text
component props.
See the contributing guide to learn how to contribute to the repository and the development workflow.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with create-react-native-library