| 1234567891011121314151617181920212223242526 |
- import * as WebBrowser from "expo-web-browser";
- import * as React from "react";
- import { Text } from "react-native";
- const FreeText = React.memo((props) => {
- function getTextProps(props) {
- let _props = {
- color: "#000000",
- fontSize: 16,
- };
- if (props.fontSize) {
- _props.fontSize = props.fontSize;
- }
- if (props.color) {
- _props.color = props.color;
- }
- if (props.textAlign) {
- _props.align = props.textAlign;
- }
- return _props;
- }
- const textProps = getTextProps(props);
- return <Text {...textProps}>{props.label || ""}</Text>;
- });
- export default FreeText;
|