react-native-outlined-text
Warning
This is a work in progress. Use with caution.
Native text component that enables text outline/stroke in React Native.
Installation
npm install react-native-outlined-text
Usage
import { OutlinedTextView } from 'react-native-outlined-text';
// ...
<OutlinedTextView outlineColor="#000000" outlineWidth={5}>
This text is outlined
</OutlinedTextView>;
Props
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.
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Made with create-react-native-library