Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, {Component} from 'react';
- import { DocumentPicker } from 'expo';
- async function uploadRecording() {
- let result = await DocumentPicker.getDocumentAsync({type: '*/*'});
- if (!result.cancelled) {
- //upload function(result.uri);
- }
- }
- import { uploadRecording } from '../components/upload-recording-button';
- export default class HomeScreen extends React.Component {
- static navigationOptions = {
- //header: null,
- title: 'Recents',
- // uploadRecording(this)
- headerRight: (
- <Button
- onPress={uploadRecording()}
- title="Add"
- color="#007AFF"
- />
- ),
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement