Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. import React, {Component} from 'react';
  2. import { DocumentPicker } from 'expo';
  3.  
  4. async function uploadRecording() {
  5. let result = await DocumentPicker.getDocumentAsync({type: '*/*'});
  6.  
  7. if (!result.cancelled) {
  8. //upload function(result.uri);
  9. }
  10. }
  11.  
  12. import { uploadRecording } from '../components/upload-recording-button';
  13.  
  14. export default class HomeScreen extends React.Component {
  15. static navigationOptions = {
  16. //header: null,
  17. title: 'Recents',
  18. // uploadRecording(this)
  19. headerRight: (
  20. <Button
  21. onPress={uploadRecording()}
  22. title="Add"
  23. color="#007AFF"
  24. />
  25. ),
  26. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement