小编Moh*_*ari的帖子

onPress 事件在 reanimated-bottom-sheet 的 renderInner 中不起作用

我在我的 React Native 项目中使用 reanimated-bottom-sheet

\n

bottomSheet用于测试的空页面内部工作得很好,但在主页内部则renderInner onPress不起作用。

\n

ButtoninsiderenderHeader不起作用,main.js而这个button import来自nativeBase,我再次使用inputTextinsiderenderInner不起作用,但是当我将 200 设置为 sizeinput border并按下 时,它border起作用了,我不知道为什么

\n

这是我的test.js页面代码:

\n
import React from 'react'\nimport {\n  Image,\n  StyleSheet,\n  Text,\n  TouchableWithoutFeedback,\n  View,\n  TextInput,\nDimensions\n} from 'react-native'\nimport { Button,Icon } from 'native-base';\n\nimport BottomSheet from 'reanimated-bottom-sheet'\nconst {width, height}= Dimensions.get('window')\n\n\nexport default class Example extends React.Component {\n    state = {\n        bottomSheet:{\n            opened: false,\n            height: height-80\n        }\n …
Run Code Online (Sandbox Code Playgroud)

react-native bottom-sheet

0
推荐指数
1
解决办法
2907
查看次数

标签 统计

bottom-sheet ×1

react-native ×1