{"size": 641, "ext": "js", "max_stars_repo_path": "lib/formComponent/text/index.js", "max_stars_repo_name": "irohitb/rn-formly", "max_stars_repo_stars_event_min_datetime": "2020-01-17T12:37:38.000Z", "max_stars_repo_stars_event_max_datetime": "2020-06-06T10:10:00.000Z", "max_issues_repo_path": "lib/formComponent/text/index.js", "max_issues_repo_name": "blendtale/rn-formly", "max_issues_repo_issues_event_min_datetime": "2020-06-27T16:41:05.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-21T23:44:58.000Z", "max_forks_repo_path": "lib/formComponent/text/index.js", "max_forks_repo_name": "blendtale/rn-formly", "max_forks_repo_forks_event_min_datetime": "2020-06-16T01:44:46.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-17T13:01:24.000Z"}
{"max_stars_count": 24, "max_issues_count": 42, "max_forks_count": 3, "avg_line_length": 40.0625, "max_line_length": 92, "alphanum_fraction": 0.6193447738}
import * as React from 'react';
import { TextInput } from 'react-native';
import styles from './style';
export const InputText = ({ value, textInputStyle, defaultColor, upsideEmit, ...rest }) => {
    const onChangeHandler = (text) => {
        upsideEmit(text);
        return;
    };
    return (React.createElement(React.Fragment, null,
        React.createElement(TextInput, Object.assign({ style: [
                { color: defaultColor, borderColor: defaultColor },
                styles.defaultTextInputStyle,
                textInputStyle,
            ], onChangeText: (text) => onChangeHandler(text), value: value }, rest))));
};
