mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
25 lines
520 B
JavaScript
25 lines
520 B
JavaScript
import React from 'react'
|
|
import { Text, TouchableHighlight, StyleSheet } from 'react-native'
|
|
|
|
export default function SelectFiles ({ showFilePicker }) {
|
|
return (
|
|
<TouchableHighlight
|
|
onPress={showFilePicker}
|
|
style={styles.button}
|
|
>
|
|
<Text style={styles.text}>Select files</Text>
|
|
</TouchableHighlight>
|
|
)
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
button: {
|
|
backgroundColor: '#cc0077',
|
|
padding: 15,
|
|
},
|
|
text: {
|
|
color: '#fff',
|
|
textAlign: 'center',
|
|
fontSize: 17,
|
|
},
|
|
})
|