The SegmentedControl component is currently little more than a thin wrapper around SegmentedControlIOS. The Android implementation does not need to reproduce all of the iOS features, only the ones we're using.
At minimum, it should:
Accept the props: selectedIndex (an integer), values (an array of tab names to display), and onChange (a callback that expects an index integer)
Allow only one tab to be selected at a time
Use the standard colors from ./constants/Colors.js
The
SegmentedControl
component is currently little more than a thin wrapper aroundSegmentedControlIOS
. The Android implementation does not need to reproduce all of the iOS features, only the ones we're using.At minimum, it should:
selectedIndex
(an integer),values
(an array of tab names to display), andonChange
(a callback that expects an index integer)./constants/Colors.js