React native 允许用户在图像上输入文本
有没有人在React Native中实现过类似的功能?我在想一种像snapchat或instagram那样编辑图像并添加文本的方法。。但我想不出你怎么可能从react native开始这么做React native 允许用户在图像上输入文本,react-native,React Native,有没有人在React Native中实现过类似的功能?我在想一种像snapchat或instagram那样编辑图像并添加文本的方法。。但我想不出你怎么可能从react native开始这么做 任何想法都很好听起来很可行。只是需要增加一些造型。为此,我的渲染将如下所示: <Image source={require(url)} style={{ height: 100, width: null, righ
任何想法都很好听起来很可行。只是需要增加一些造型。为此,我的渲染将如下所示:
<Image source={require(url)}
style={{
height: 100,
width: null,
right: 0,
left: 0}}
>
<TextInput
style={{
position: 'absolute',
height: 20,
width 60,
fontSize: 24,
fontWeight: '600',
backgroundColor: 'transparent',
color: white}}
/>
</Image>
要使其“可编辑”或类似的功能,只需在某个地方抛出
TouchableOpacity
,然后按下onPress
,触发一个显示和隐藏文本输入的功能。哇,你做得这么简单,哈哈,我想不出该怎么做来提升我。。非常感谢。