SelectFilesButton.js 543 B

123456789101112131415161718192021222324
  1. import React from 'react' // eslint-disable-line no-unused-vars
  2. import { Text, TouchableHighlight, StyleSheet } from 'react-native'
  3. export default function SelectFiles (props) {
  4. return (
  5. <TouchableHighlight
  6. onPress={props.showFilePicker}
  7. style={styles.button}>
  8. <Text style={styles.text}>Select files</Text>
  9. </TouchableHighlight>
  10. )
  11. }
  12. const styles = StyleSheet.create({
  13. button: {
  14. backgroundColor: '#cc0077',
  15. padding: 15
  16. },
  17. text: {
  18. color: '#fff',
  19. textAlign: 'center',
  20. fontSize: 17
  21. }
  22. })