You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
373 B

import React, {Component} from 'react';
import {StyleSheet, Text} from 'react-native';
const styles = {
mytext: {
color: 'black',
},
};
export default class MyText extends Component {
constructor(props) {
super(props);
}
render() {
return (
<Text {...this.props} style={[styles.mytext, this.props.style]}>
{this.props.children}
</Text>
);
}
}