<commit_before>import React from 'react';
import RNPickerSelect from 'react-native-picker-select';
import { Platform } from 'react-native';
import { TextInput, useTheme } from 'react-native-paper';
import { useField } from 'formik';
import PropTypes from 'prop-types';

export default function Select({ name, choices, label }) {
    const theme = useTheme(),
        [, meta, helpers] = useField(name),
        { value } = meta,
        { setValue } = helpers;

    const styles = {
        viewContainer:
            Platform.OS === 'ios'
                ? {
                      top: 32,
                      left: 12
                  }
                : {
                      top: 16,
                      left: 4
                  },
        inputIOS: {
            color: theme.colors.text,
            fontSize: 16
        },
        inputAndroid: {
            color: theme.colors.text
        }
    };

    return (
        <TextInput
            label={label}
            value={'-'}
            render={() => (
                <RNPickerSelect
                    value={value}
                    onValueChange={setValue}
                    items={choices.map(({ name, label }) => ({
                        value: name,<commit_msg>ensure select label is tappable<commit_after>import React from 'react';
import RNPickerSelect from 'react-native-picker-select';
import { TextInput, useTheme } from 'react-native-paper';
import { useField } from 'formik';
import PropTypes from 'prop-types';

export default function Select({ name, choices, label }) {
    const theme = useTheme(),
        [, meta, helpers] = useField(name),
        { value } = meta,
        { setValue } = helpers;

    const styles = {
        inputIOS: {
            color: theme.colors.text,
            marginLeft: 12,
            paddingTop: 32,
            fontSize: 16
        },
        inputAndroid: {
            color: theme.colors.text,
            marginLeft: 4,
            paddingTop: 40,
            paddingBottom: 40,
            marginBottom: -40
        }
    };

    return (
        <TextInput
            label={label}
            value={'-'}
            render={() => (
                <RNPickerSelect
                    value={value}
                    onValueChange={setValue}
                    items={choices.map(({ name, label }) => ({
                        value: name,
{'fraction_non_alphanumeric': 0.11269375785504818, 'fraction_numerical': 0.009216589861751152, 'mean_word_length': 1.3832335329341316, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4438072', 'n_tokens_mistral': 644, 'n_tokens_neox': 604, 'n_words': 152}