Skip to content

Commit 48f7c35

Browse files
committed
change react-native why error
1 parent 2cc851e commit 48f7c35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ReactNative相关/ReactNative报错记录.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323

2424

25-
- 在View添加了onPress,但是在点击的时候,不会产生任何效果,View没有这样的方法,当遇到需要这样操作的方法的时候可以加入<TouchableOpacity> </TouchableOpacity>
25+
- ``在View添加了onPress,但是在点击的时候,不会产生任何效果``
26+
27+
错误原因:View没有这样的方法,当遇到需要这样操作的方法的时候可以加入``<TouchableOpacity> </TouchableOpacity>``
2628

2729

2830

0 commit comments

Comments
 (0)