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:
Martin Konicek authored and facebook-github-bot-3 committed 2016-01-29 03:59:54 -08:00
1 parent c33e8524c1
commit 1dd5ba7021
8 files changed
+373 -280

No files matched your search

@@ -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")) {