react-native - 如何从 react-native-modal 隐藏外线
问题描述
我正在使用react-native-modal。
我想从上图中删除外线。
我的代码是:
import Modal from 'react-native-modal';
<Modal
isVisible={isModalVisible}
swipeDirection="down"
style={{
justifyContent: 'flex-end',
margin: 0,
}}>
<TouchableWithoutFeedback onPress={toggleModal}>
<Text
style={{
flex: 1,
backgroundColor: 'transparent',
}}>
{''}
</Text>
</TouchableWithoutFeedback>
<View
style={{
backgroundColor: 'white',
height: Dimensions.get('screen').height / 1.6,
}}>
<Text
style={{
margin: 8,
paddingHorizontal: 8,
color: '#222',
fontSize: 18,
fontWeight: 'bold',
textAlign: 'left',
}}>再生速度</Text>
<View style={[commonStyles.line, { marginBottom: 0 }]} />
<Text style={styles.modal_text}>2.0x</Text>
<Text style={styles.modal_text}>1.75x</Text>
<Text style={styles.modal_text}>1.5x</Text>
<Text style={styles.modal_text}>1.25x</Text>
<Text style={styles.modal_text}>1.0x</Text>
<Text style={styles.modal_text}>0.75x</Text>
<Text style={styles.modal_text}>0.5x</Text>
<Text style={styles.modal_text}>0.25x</Text>
<View style={[commonStyles.line, { marginBottom: 0 }]} />
<Text style={{ margin: 8, paddingHorizontal: 8, color: '#222', fontSize: 18, fontWeight: 'bold', textAlign: 'center',}}
onPress={toggleModal}>キャンセル</Text>
</View>
</Modal>
我尝试了这个库中的一些样式,但不起作用(例如:溢出、边框宽度)
我该如何解决这个问题?
您可以提供的任何建议将不胜感激。
解决方案
推荐阅读
- c++ - 更快地将子字符串匹配到字符串列表
- python - 将空的“主”df 与从嵌套字典构建的多个动态生成的 df 相结合
- openvpn - Openvpn Invalid Previx Length and RTNETLINK 答案:文件存在
- python - itertools/groupby/for循环
- javascript - firebase : 401 未授权但登录成功(获取 uid 成功)
- c# - 错误 400:invalid_request 缺少必需参数:redirect_uri c#
- python - 将 Django 迁移合并到一个包中
- c++ - 我正在尝试在 Embarcadero Dev-C++ 上打印国际字符,但它们总是出错
- wordpress - 为什么我在 Timber/Twig 中的操作符不适用于我的条件语句?
- google-apps-script - 如何检查列中的值