mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-01 09:15:06 +08:00
Add a cross-platform Picker
Summary: The basic API is consistent with iOS; there are several platform-specific props. Also fixed the flickering when a value is selected. public Reviewed By: bestander Differential Revision: D2871092 fb-gh-sync-id: f5cdf6858cb7344b28ee46954cb6b0a3b144b646
This commit is contained in:
committed by
facebook-github-bot-3
parent
c33e8524c1
commit
1dd5ba7021
@@ -128,7 +128,7 @@ public abstract class ReactPickerManager extends SimpleViewManager<ReactPicker>
|
||||
}
|
||||
|
||||
TextView textView = (TextView) convertView;
|
||||
textView.setText(item.getString("text"));
|
||||
textView.setText(item.getString("label"));
|
||||
if (!isDropdown && mPrimaryTextColor != null) {
|
||||
textView.setTextColor(mPrimaryTextColor);
|
||||
} else if (item.hasKey("color") && !item.isNull("color")) {
|
||||
|
||||
Reference in New Issue
Block a user