File tree Expand file tree Collapse file tree 3 files changed +37
-2
lines changed Expand file tree Collapse file tree 3 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -490,4 +490,12 @@ export const stackPageData: Routes[] = [
490490 description : 'form' ,
491491 } ,
492492 } ,
493+ {
494+ name : 'ImagePicker' ,
495+ component : require ( './routes/ImagePicker' ) . default ,
496+ params : {
497+ title : 'ImagePicker 图片上传' ,
498+ description : '图片上传' ,
499+ } ,
500+ } ,
493501] ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { ActionBar } from '@uiw/react-native' ;
3- import { ImagePicker } from '@uiw/react-native-image-picker' ;
43import { View , Alert } from 'react-native' ;
54import { ComProps } from '../../routes' ;
65import Layout from '../../Layout' ;
@@ -38,7 +37,6 @@ export default class ActionBarDemo extends React.Component<ActionBarProps> {
3837 } ,
3938 ] }
4039 />
41- < ImagePicker />
4240 </ View >
4341 </ React . Fragment >
4442 ) ;
Original file line number Diff line number Diff line change 1+ import React , { useState } from 'react' ;
2+ import { View , StyleSheet } from 'react-native' ;
3+ import { Button , MaskLayer , Text } from '@uiw/react-native' ;
4+ import { ImagePicker } from '@uiw/react-native-image-picker' ;
5+ import Layout , { Container } from '../../Layout' ;
6+ import { ComProps } from '../../routes' ;
7+
8+ const { Header, Body, Card, Footer} = Layout ;
9+
10+ export interface ImagePickerProps extends ComProps { }
11+
12+ export default function MenuDropdownView ( props : ImagePickerProps ) {
13+ const { route} = props || { } ;
14+ const description = route . params . description ;
15+ const title = route . params . title ;
16+ return (
17+ < Container >
18+ < Layout >
19+ < Header title = { title } description = { description } />
20+ < Body >
21+ < Card title = "基础实例" >
22+ < ImagePicker />
23+ </ Card >
24+ </ Body >
25+ < Footer />
26+ </ Layout >
27+ </ Container >
28+ ) ;
29+ }
You can’t perform that action at this time.
0 commit comments