diff --git a/src/common/SelectableOptionRow.js b/src/common/SelectableOptionRow.js new file mode 100644 index 00000000000..8fe894af57f --- /dev/null +++ b/src/common/SelectableOptionRow.js @@ -0,0 +1,51 @@ +/* @flow strict-local */ +import React from 'react'; +import { View } from 'react-native'; + +import { RawLabel, Touchable } from '.'; +import { BRAND_COLOR, createStyleSheet } from '../styles'; +import { IconDone } from './Icons'; + +const styles = createStyleSheet({ + languageWrapper: { + flex: 1, + flexDirection: 'column', + }, + name: { + fontWeight: '300', + fontSize: 13, + }, + listItem: { + flexDirection: 'row', + alignItems: 'center', + paddingTop: 12, + paddingBottom: 12, + paddingLeft: 16, + paddingRight: 16, + }, +}); + +type Props = $ReadOnly<{| + locale: string, + name: string, + nativeName: string, + selected: boolean, + onValueChange: (locale: string) => void, +|}>; + +// Not ready to use. +export default function LanguagePickerItem(props: Props) { + const { locale, name, nativeName, selected, onValueChange } = props; + + return ( + onValueChange(locale)}> + + + + + + {selected && } + + + ); +}