import { Picker, PickerProps } from '@react-native-picker/picker';
import { Platform } from 'expo-modules-core';
import * as React from 'react';
import { Text, Button } from 'react-native';
import { ScrollPage, Section } from '../components/Page';
export default function PickerScreen() {
// TODO: PickerIOS
return (
{Platform.OS === 'ios' && (
)}
{Platform.OS !== 'ios' && (
)}
{Platform.OS === 'android' && (
)}
{Platform.OS === 'android' && (
)}
{Platform.OS === 'android' && (
)}
{Platform.OS === 'android' && (
)}
{Platform.OS === 'android' && (
)}
{Platform.OS === 'web' && (
)}
);
}
PickerScreen.navigationOptions = {
title: 'Picker',
};
function GenericPicker(props: React.PropsWithChildren) {
const [value, setValue] = React.useState('java');
return (
<>
setValue(item)}>
{props.children}
Selected: {value}
>
);
}
function FocusPicker(props: Partial>) {
const [value, setValue] = React.useState('java');
const pickerRef = React.useRef();
return (
<>
setValue(item)}>
Selected: {value}