Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { PropTypes } from 'prop-types';
- import React from 'react';
- import { Button, View } from 'react-native';
- const HelloFormView = ({ handleSubmit }) => (
- <View>
- <Button
- title="Submit Hello"
- onPress={handleSubmit}
- />
- </View>
- );
- HelloFormView.propTypes = {
- handleSubmit: PropTypes.func.isRequired,
- };
- export default HelloFormView;
Add Comment
Please, Sign In to add comment