相关疑难解决方法(0)

如何设置标准react-native android picker的样式?

我无法设计它.几乎没有任何关于此的文件.我想知道如何设置fontFamily.如何在Picker.items上设置背景颜色?

https://facebook.github.io/react-native/docs/picker.html

设置fontFamily或背景颜色不起作用.将它包装在View中并将样式属性赋予View也不起作用.

<Picker
   style={styles.picker} // cannot set fontFamily here
   selectedValue={this.state.selected2}
   onValueChange={this.onValueChange.bind(this, 'selected2')}
   mode="dropdown">
   <Item label="hello" value="key0" /> // cannot set backgroundColor here
   <Item label="world" value="key1" />
</Picker>
Run Code Online (Sandbox Code Playgroud)

android react-native

53
推荐指数
3
解决办法
3万
查看次数

React-Native 选择器 - 更改字体大小

我想更改选择器的字体大小并设置选择器项目的格式。我已按照以下链接中的说明重新运行 react-native run-android,但没有任何变化。

如何设计标准的 react-native android 选择器?

react-native

5
推荐指数
1
解决办法
5388
查看次数

标签 统计

react-native ×2

android ×1