Rex Rao
Rex Rao
@williamlk 抱歉这两天有点忙碌,我会再试试Android的场景。 目前样式问题比较集中在RN版本升级到0.36之后的Android平台,因为此版本有个关于Flex布局的重大变更,我以为只是我的demo中样式有点小问题,看到您实际项目中的截图也有此问题,深表抱歉! 我会尽快跟进。
如果各位还在关注这个问题,我已经知道了引起的原因,这个高度正式安卓的StatusBar的高度 解决方法可能是传递自定义样式的时候减去StatusBar的高度,这个高度是22,也可以取RN提供的`StatusBar.currentHeight`(更好) 因为并不是所有时候都会出现这个空隙,目前我还不知道如何判断何时需要减去这个数值,所以也不知道如何修改比较合适,如果大家有经验还请不吝赐教!
If the displayed value is one of the options of the dropdown, you can call `select(idx)` of your dropdown reference. If not, you have to give a `defaultValue` and `select(-1)`...
@alburdette619 Why not find out the index of this value and call `onSelect`.
Hi @dscx , Sorry for your confusion. `defaultValue` is for the initial state and will be invalid after select an option. It will show back only if you call `select(-1)`...
@sukumardv3101 https://github.com/sohobloo/react-native-modal-dropdown/issues/55#issuecomment-313564959
have you tested object options. Not sure ListView datasource can accept it.
Thanks for you suggestion. That must be a large proj relative to this component. I'll think about the design first.
Please remove the spaces within the jsx return ``` return({item}); ```
Hi, everybody! Finally, I have decided to solve this often-appear-issue. v0.6.0 introduces a new prop `renderButtonText(data: object) :string` for you to extract and return the selected option text for the...