UNPKG

hcmobile-sdk

Version:

mobile-sdk

171 lines (167 loc) 5.01 kB
import React from 'react'; import {View} from 'react-native'; import ButtonDemo from './components/button/ButtonDemo'; import TextInputDemo from './components/textInput/TextInputDemo'; import RowLayoutDemo from './components/rowLayout/RowLayoutDemo'; import SwitchDemo from './components/switch/SwitchDemo'; import UltimeateListViewDemo from './components/react-native-ultimate-listview/UltimeateListViewDemo'; import PickerViewDemo from './components/pickerView/PickerViewDemo'; import ViewPagerDemo from './components/viewpager/ViewPagerDemo'; import ImagePickerDemo from './components/ImageCropPicker/ImagePickerDemo'; import ActionSheetDemo from './components/actionsheet/ActionSheetDemo'; import KeyBoardScrollViewDemo from './components/keyboardScrollView/KeyBoardScrollViewDemo'; // import SegmentControllDemo from './components/SegmentControll/demo/basic'; import SelectButtonDemo from './components/selectButton/SelectButtonDemo'; import ImageViewerDemo from './components/ImageViewer/ImageViewerDemo'; import DeviceInfoDemo from './components/deviceinfo/DeviceInfoDemo'; import BadgeDemo from './components/badge/BadgeDemo'; import ModalDropdownDemo from './components/modalDropdown/ModalDropdownDemo'; import AlertDemo from './components/Alert/AlertDemo'; const NavColor = 'red'; export const NavBarConfig = { headerStyle: {backgroundColor:NavColor, justifyContent: 'center',elevation:0,shadowOpacity: 0}, headerTitleStyle: { color: 'white',alignSelf:'center'}, headerRight:(<View style = {{width:40}}/>), headerTintColor: 'white', tabBarVisible: false, headerBackTitle:null, }; const Routes = { ButtonDemo:{ name:'ButtonDemo', screen:ButtonDemo, navigationOptions: { title:'ButtonDemo', ...NavBarConfig, } }, TextInputDemo:{ name:'TextInputDemo', screen:TextInputDemo, navigationOptions: { title:'TextInputDemo', ...NavBarConfig, } }, RowLayoutDemo:{ name:'RowLayoutDemo', screen:RowLayoutDemo, navigationOptions: { title:'RowLayoutDemo', ...NavBarConfig, } }, SwitchDemo:{ name:'SwitchDemo', screen:SwitchDemo, navigationOptions: { title:'SwitchDemo', ...NavBarConfig, } }, UltimeateListViewDemo:{ name:'UltimeateListViewDemo', screen:UltimeateListViewDemo, navigationOptions: { title:'UltimeateListViewDemo', ...NavBarConfig, } }, PickerViewDemo:{ name:'PickerViewDemo', screen:PickerViewDemo, navigationOptions: { title:'PickerViewDemo', ...NavBarConfig, } }, ViewPagerDemo:{ name:'ViewPagerDemo', screen:ViewPagerDemo, navigationOptions: { title:'ViewPagerDemo', ...NavBarConfig, } }, ImagePickerDemo:{ name:'ImagePickerDemo', screen:ImagePickerDemo, navigationOptions: { title:'ImagePickerDemo', ...NavBarConfig, } }, ActionSheetDemo:{ name:'ActionSheetDemo', screen:ActionSheetDemo, navigationOptions: { title:'ActionSheetDemo', ...NavBarConfig, } }, // SegmentControllDemo:{ // name:'SegmentControllDemo', // screen:SegmentControllDemo, // navigationOptions: { // title:'SegmentControllDemo', // ...NavBarConfig, // } // }, SelectButtonDemo:{ name:'SelectButtonDemo', screen:SelectButtonDemo, navigationOptions: { title:'SelectButtonDemo', ...NavBarConfig, } }, KeyBoardScrollViewDemo:{ name:'KeyBoardScrollViewDemo', screen:KeyBoardScrollViewDemo, navigationOptions: { title:'KeyBoardScrollViewDemo', ...NavBarConfig, } }, ImageViewerDemo:{ name:'ImageViewerDemo', screen:ImageViewerDemo, navigationOptions: { title:'ImageViewerDemo', ...NavBarConfig, } }, DeviceInfoDemo:{ name:'DeviceInfoDemo', screen:DeviceInfoDemo, navigationOptions: { title:'DeviceInfoDemo', ...NavBarConfig, } }, BadgeDemo:{ name:'BadgeDemo', screen:BadgeDemo, navigationOptions: { title:'BadgeDemo', ...NavBarConfig, } }, ModalDropdownDemo:{ name:'ModalDropdownDemo', screen:ModalDropdownDemo, navigationOptions: { title:'ModalDropdownDemo', ...NavBarConfig, } }, AlertDemo:{ name:'AlertDemo', screen:AlertDemo, navigationOptions: { title:'AlertDemo', ...NavBarConfig, } } }; export default Routes;