dmahajan980 / react-native-outlined-text

Native text component that enables adding text outline/stroke in React Native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Native text component that enables adding text outline/stroke in React Native

License:MIT License


Languages

Language:Java 49.2%Language:C++ 18.4%Language:Objective-C++ 9.6%Language:Ruby 6.4%Language:JavaScript 4.3%Language:Makefile 4.0%Language:TypeScript 3.7%Language:Swift 2.5%Language:Objective-C 1.5%Language:C 0.3%