Guest User

Untitled

a guest
Oct 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import { PropTypes } from 'prop-types';
  2. import React from 'react';
  3. import { Button, View } from 'react-native';
  4.  
  5. const HelloFormView = ({ handleSubmit }) => (
  6. <View>
  7. <Button
  8. title="Submit Hello"
  9. onPress={handleSubmit}
  10. />
  11. </View>
  12. );
  13.  
  14. HelloFormView.propTypes = {
  15. handleSubmit: PropTypes.func.isRequired,
  16. };
  17.  
  18. export default HelloFormView;
Add Comment
Please, Sign In to add comment