0.0.2 • Published 2 years ago

react-native-iforms v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-native-iforms

Formulários

Installation

npm install react-native-iforms

or

yarn add react-native-iforms

Usage

import { Form, Field } from 'react-native-iforms';

const handleSubmit = (submittingValues) => {
  Alert.alert(JSON.stringify(submittingValues, null, 2));
};

return (
  <Form onSubmit={handleSubmit}>
    <Field name="firstName">
      {({ field, fieldState }) => (
        <TextInput
          value={field.value}
          onChangeText={field.onChange}
          onBlur={field.onBlur}
        />
      )}
    </Field>
    <Submit>{(onSubmit) => <Button title="Save" onPress={onSubmit} />}</Submit>
  </Form>
);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.0.2

2 years ago

0.0.1

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago