Skip to content

Instantly share code, notes, and snippets.

@luandevpro
Created June 3, 2019 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luandevpro/974dd942d856388eb57cf896c9a32e09 to your computer and use it in GitHub Desktop.
Save luandevpro/974dd942d856388eb57cf896c9a32e09 to your computer and use it in GitHub Desktop.
import React from 'react';
import { FieldArray } from 'formik';
import { View, Button } from 'react-native';
import CustomCheckBox from './CustomCheckBox';
export default props => (
<View>
<FieldArray name="languages">
{ arrayHelpers => <View><CustomCheckBox arrayHelpers={arrayHelpers} {...props} /></View> }
</FieldArray>
<Button onPress={props.handleSubmit} title="Submit" />
</View>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment