react-native-text-plus
npm install react-native-text-plusA React Native component for text with gradient and text style attributes.
``sh`
npm install react-native-text-plus
`sh`
yarn add react-native-text-plus
`tsx
import { Text, TextContextProvider } from 'react-native-text-plus';
// ...
fontFamily: '...',
... // same as Text style
}}>
fontWeight="bold"
// ... as Text style and Text props
style={{
// only work for Text
}}
// text attributes end
// gradient attributes
colors={['#000', '#fff']} // for gradient
start={{ x: 0, y: 0 }}
//... gradient attributes only work with colors, same as LinearGradient props
// end
// locations
// useAngle
// angleCenter
// angle
// gradient attributes end
>Hello, World!
// ...
``
> "@react-native-masked-view/masked-view": "^0.3.0",
>
> "react-native-linear-gradient": "^2.8.0"
>
> // if you need lower version dependencies, please PR or issue
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
---
Made with create-react-native-library