React本机样式的标记
带有格式化功能的标记文本可用于本机React。
用法
在上
import MarkupText from 'react-native-styled-markup';
<MarkupText linkEvents={[
> alert('The first link is pressed!'),
() => alert('The second link is pressed!'),
]}
linkTextStyle={{
textDecorationLine: 'underline',
color: 'darkblue',
fontWeight: 'bold',
}}
imageSources={[require('./150.png')]}>
[b]Lorem ipsum dolor[/b]
评论0
最新资源