You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
424 B

import React from "react";
import { useFormikContext } from "formik";
import Button from "../Button";
import {View} from "react-native";
function SubmitButton({ title, paddingHorizontal = 16 }) {
const { handleSubmit } = useFormikContext();
return (
<View
style={{paddingHorizontal: paddingHorizontal}}
>
<Button title={title} onPress={handleSubmit} />
</View>
);
}
export default SubmitButton;