@uiw/react-native
Version:
UIW for React Native
18 lines • 510 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import { StyleSheet, Text } from 'react-native';
const styles = StyleSheet.create({
default: {
fontWeight: 'bold'
}
});
export default function Strong(props) {
return <Text {...props} style={[styles.default, props.style]}>
{props.children}
</Text>;
}
Strong.propTypes = {
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node, PropTypes.string]),
style: PropTypes.any
};
Strong.defaultProps = {};