问题描述
我正在尝试制作类似于Word-Link的游戏。我想在多个字母之间滑动并创建一个单词。我如何在React-Native中实现这一点。我曾经有一个想法是使用模式锁定系统,但我仍在发布此查询以查找是否有更好的方法来执行此操作。目前,我正在使用ToucableOpacity按下按钮并生成单词。 [1]:https://i.stack.imgur.com/z4iKW.jpg
<TouchableOpacity
onPress={() => {
this.addLetters(alpha4[0])
// Alert.alert("A")
box1 = alpha4[0]
this.setState({ box1: box1 })
}}
>
<View style={{ width: 50,height: 50,backgroundColor: 'beige' }}>
<Text style={{ fontSize: 30,fontWeight: 'bold',justifyContent: 'center',textAlignVertical: 'center',textAlign: 'center',borderWidth: 5 }}>{alpha4[0]}</Text>
</View>
</TouchableOpacity>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)