Install my-project with npm
yarn add react-native-customtext-v1.2
import {View} from 'react-native';
import React from 'react';
import UIText from 'react-native-customtext-v1';
const Screen = () => {
return (
<UIText
backgroundColor="#f00"
position="absolute"
alignSelf="center"
>
hello
</UIText>
);
};
export default Screen;
Parameter | Type |
---|---|
alignItems |
FlexAlignType |
alignContent |
any |
alignSelf |
any |
fontSize |
number |
fontWeight |
any |
width |
any |
height |
any |
backgroundColor |
string |
borderRadius |
number |
borderColor |
number |
borderWidth |
number |
margin |
number |
marginHorizontal |
number |
marginVertical |
number |
padding |
number |
paddingHorizontal |
number |
paddingVertical |
number |
position |
absolute , relative |