Explorar o código

add uppy logo, tweak styles

Artur Paikin %!s(int64=6) %!d(string=hai) anos
pai
achega
4fbe1eb3ba

+ 13 - 4
examples/react-native-expo/App.js

@@ -3,7 +3,8 @@ import React from 'react'
 import {
 import {
   Text,
   Text,
   View,
   View,
-  AsyncStorage
+  AsyncStorage,
+  Image
   // Linking
   // Linking
 } from 'react-native'
 } from 'react-native'
 import Uppy from '@uppy/core'
 import Uppy from '@uppy/core'
@@ -13,6 +14,7 @@ import FileList from './FileList'
 import PauseResumeButton from './PauseResumeButton'
 import PauseResumeButton from './PauseResumeButton'
 import ProgressBar from './ProgressBar'
 import ProgressBar from './ProgressBar'
 import SelectFiles from './SelectFilesButton'
 import SelectFiles from './SelectFilesButton'
+// import uppyLogo from './assets/uppy-logo.png'
 
 
 function hashCode (str) {
 function hashCode (str) {
   // from https://stackoverflow.com/a/8831937/151666
   // from https://stackoverflow.com/a/8831937/151666
@@ -129,8 +131,15 @@ export default class App extends React.Component {
       }}>
       }}>
         <Text style={{
         <Text style={{
           fontSize: 25,
           fontSize: 25,
-          marginBottom: 20
+          marginBottom: 20,
+          textAlign: 'center'
         }}>Uppy in React Native</Text>
         }}>Uppy in React Native</Text>
+        <View style={{alignItems: 'center'}}>
+          <Image
+            style={{width: 80, height: 78, marginBottom: 50}}
+            source={require('./assets/uppy-logo.png')}
+          />
+        </View>
         <SelectFiles showFilePicker={this.showFilePicker} />
         <SelectFiles showFilePicker={this.showFilePicker} />
         <ProgressBar
         <ProgressBar
           progress={this.state.progress}
           progress={this.state.progress}
@@ -150,8 +159,8 @@ export default class App extends React.Component {
 
 
         <FileList uppy={this.uppy} />
         <FileList uppy={this.uppy} />
 
 
-        <Text>{this.state.status ? 'Status: ' + this.state.status : null}</Text>
-        <Text>{this.state.progress} of {this.state.total}</Text>
+        {/* <Text>{this.state.status ? 'Status: ' + this.state.status : null}</Text>
+        <Text>{this.state.progress} of {this.state.total}</Text> */}
       </View>
       </View>
     )
     )
   }
   }

BIN=BIN
examples/react-native-expo/assets/uppy-logo.png