SelectFilesButton.js 551 B

12345678910111213141516171819202122232425
  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. >
  9. <Text style={styles.text}>Select files</Text>
  10. </TouchableHighlight>
  11. )
  12. }
  13. const styles = StyleSheet.create({
  14. button: {
  15. backgroundColor: '#cc0077',
  16. padding: 15,
  17. },
  18. text: {
  19. color: '#fff',
  20. textAlign: 'center',
  21. fontSize: 17,
  22. },
  23. })