├── .babelrc ├── .eslintrc ├── .flowconfig ├── .gitignore ├── .watchmanconfig ├── App.vue ├── README.md ├── app.json ├── assets ├── camera.png ├── contacts │ ├── atul.png │ ├── himanshu.png │ ├── megha.png │ ├── pratik.png │ ├── sanket.png │ ├── sankhadeep.png │ ├── saurabh.png │ ├── shivraj.jpg │ ├── shruti.png │ ├── shweta.png │ ├── supriya.png │ └── varun.png ├── drawer-cover.png ├── launchscreen-bg.png ├── logo-kitchen-sink.png ├── logo.png ├── nblogo.png ├── splashscreen.png ├── swiper-1.png ├── swiper-2.png ├── swiper-3.png ├── swiper-4.png └── web-cover1.jpg ├── license ├── metro.config.js ├── package-lock.json ├── package.json ├── src ├── App.vue ├── boot │ └── setup.vue ├── screens │ ├── actionSheet │ │ ├── icon.vue │ │ ├── index.android.vue │ │ ├── index.ios.vue │ │ └── regular.vue │ ├── anatomy │ │ └── index.vue │ ├── badge │ │ └── index.vue │ ├── button │ │ ├── blockButton.vue │ │ ├── customButton.vue │ │ ├── defaultButton.vue │ │ ├── disableButton.vue │ │ ├── fullButton.vue │ │ ├── iconButton.vue │ │ ├── index.vue │ │ ├── outlineButton.vue │ │ ├── roundedButton.vue │ │ └── transparentButton.vue │ ├── card │ │ ├── basicCard.vue │ │ ├── carItemButton.vue │ │ ├── cardBordered.vue │ │ ├── cardHeaderAndFooter.vue │ │ ├── cardImage.vue │ │ ├── cardList.vue │ │ ├── cardShowcase.vue │ │ ├── cardTransparent.vue │ │ └── index.vue │ ├── checkbox │ │ └── index.vue │ ├── deckSwiper │ │ ├── advancedDeckSwiper │ │ │ └── index.vue │ │ ├── common │ │ │ └── card.vue │ │ ├── index.vue │ │ └── simpleDeckSwiper │ │ │ └── index.vue │ ├── fab │ │ ├── basicFab.vue │ │ ├── index.vue │ │ └── multipleFabIcon.vue │ ├── footer │ │ ├── badgeFooter.vue │ │ ├── basicFooter.vue │ │ ├── iconFooter.vue │ │ ├── iconTextFooter.vue │ │ └── index.vue │ ├── form │ │ ├── disabledInput.vue │ │ ├── errorInput.vue │ │ ├── fixedLabelInput.vue │ │ ├── floatingLabelInput.vue │ │ ├── iconInput.vue │ │ ├── index.vue │ │ ├── inlineLabelInput.vue │ │ ├── placeholderInput.vue │ │ ├── regularInput.vue │ │ ├── roundedInput.vue │ │ ├── stackedInput.vue │ │ ├── succesInput.vue │ │ ├── textAreaInput.vue │ │ └── underLineInput.vue │ ├── header │ │ ├── header1.vue │ │ ├── header2.vue │ │ ├── header3.vue │ │ ├── header4.vue │ │ ├── header5.vue │ │ ├── header6.vue │ │ ├── header7.vue │ │ ├── header8.vue │ │ ├── headerNoShadow.vue │ │ ├── headerSpan.vue │ │ ├── index.android.vue │ │ └── index.ios.vue │ ├── home │ │ └── index.vue │ ├── icons │ │ ├── basicIon.vue │ │ ├── familyIcon.vue │ │ ├── icon.vue │ │ ├── index.vue │ │ └── platformSpecificIcon.vue │ ├── layout │ │ ├── columnLayout.vue │ │ ├── customColumnLayout.vue │ │ ├── customRowLayout.vue │ │ ├── index.vue │ │ ├── nestedLayout.vue │ │ └── rowLayout.vue │ ├── list │ │ ├── avatarList.vue │ │ ├── basicList.vue │ │ ├── dividerList.vue │ │ ├── headerList.vue │ │ ├── iconList.vue │ │ ├── index.vue │ │ ├── selectedListItem.vue │ │ ├── separatorList.vue │ │ └── thumbnailList.vue │ ├── listSwipe │ │ ├── basicListSwipe.vue │ │ ├── customRowListSwiper.vue │ │ ├── index.vue │ │ └── multiListSwiper.vue │ ├── picker │ │ ├── backButtonPicker.vue │ │ ├── customHeaderPicker.vue │ │ ├── headerPicker.vue │ │ ├── headerStylePicker.vue │ │ ├── index.android.vue │ │ ├── index.ios.vue │ │ ├── pickerTextItemText.vue │ │ ├── pickerWithIcon.vue │ │ ├── placeHolderPicker.vue │ │ ├── placeholderPickerNote.vue │ │ └── regularPicker.vue │ ├── radio │ │ └── index.vue │ ├── searchBar │ │ └── index.vue │ ├── segment │ │ ├── index.vue │ │ ├── segmentHeader.vue │ │ └── segmentTab.vue │ ├── sidebar │ │ └── index.vue │ ├── spinner │ │ └── index.vue │ ├── tabs │ │ ├── advanceTab.vue │ │ ├── basicTab.vue │ │ ├── components │ │ │ ├── tabFive.vue │ │ │ ├── tabFour.vue │ │ │ ├── tabOne.vue │ │ │ ├── tabThree.vue │ │ │ └── tabTwo.vue │ │ ├── index.vue │ │ └── scrollableTab.vue │ ├── thumbnail │ │ └── index.vue │ ├── toast │ │ ├── basicToast.vue │ │ ├── index.vue │ │ ├── toastButton.vue │ │ ├── toastDuration.vue │ │ ├── toastPosition.vue │ │ ├── toastText.vue │ │ └── toastType.vue │ └── typography │ │ └── index.vue └── theme │ ├── .eslintrc │ ├── components │ ├── Badge.js │ ├── Body.js │ ├── Button.js │ ├── Card.js │ ├── CardItem.js │ ├── CheckBox.js │ ├── Container.js │ ├── Content.js │ ├── Fab.js │ ├── Footer.js │ ├── FooterTab.js │ ├── Form.js │ ├── H1.js │ ├── H2.js │ ├── H3.js │ ├── Header.js │ ├── Icon.js │ ├── Input.js │ ├── InputGroup.js │ ├── Item.js │ ├── Label.js │ ├── Left.js │ ├── ListItem.js │ ├── Picker.android.js │ ├── Picker.ios.js │ ├── Picker.js │ ├── Radio.js │ ├── Right.js │ ├── Segment.js │ ├── Separator.js │ ├── Spinner.js │ ├── Subtitle.js │ ├── SwipeRow.js │ ├── Switch.js │ ├── Tab.js │ ├── TabBar.js │ ├── TabContainer.js │ ├── TabHeading.js │ ├── Text.js │ ├── Textarea.js │ ├── Thumbnail.js │ ├── Title.js │ ├── Toast.js │ ├── View.js │ └── index.js │ └── variables │ ├── commonColor.js │ ├── material.js │ └── platform.js └── vueTransformerPlugin.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["babel-preset-expo"], 3 | "env": { 4 | "development": { 5 | "plugins": ["@babel/transform-react-jsx-source"] 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "env": { 4 | "node": true 5 | }, 6 | "parserOptions": { 7 | "parser": "babel-eslint" 8 | }, 9 | "extends": [ 10 | "plugin:vue/essential", 11 | "plugin:react/recommended", 12 | "plugin:prettier/recommended", 13 | "eslint:recommended" 14 | ], 15 | "rules": { 16 | "object-shorthand": ["error", "always"], 17 | "vue/v-bind-style": ["error", "shorthand"], 18 | "vue/v-on-style": ["error", "shorthand"], 19 | "vue/component-name-in-template-casing": ["error", "kebab-case"], 20 | "vue/prop-name-casing": ["error", "camelCase"] 21 | }, 22 | "settings": { 23 | "react": { 24 | "version": "16.8.3" 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore templates for 'react-native init' 6 | /node_modules/react-native/local-cli/templates/.* 7 | 8 | ; Ignore RN jest 9 | /node_modules/react-native/jest/.* 10 | 11 | ; Ignore RNTester 12 | /node_modules/react-native/RNTester/.* 13 | 14 | ; Ignore the website subdir 15 | /node_modules/react-native/website/.* 16 | 17 | ; Ignore the Dangerfile 18 | /node_modules/react-native/danger/dangerfile.js 19 | 20 | ; Ignore Fbemitter 21 | /node_modules/fbemitter/.* 22 | 23 | ; Ignore "BUCK" generated dirs 24 | /node_modules/react-native/\.buckd/ 25 | 26 | ; Ignore unexpected extra "@providesModule" 27 | .*/node_modules/.*/node_modules/fbjs/.* 28 | 29 | ; Ignore polyfills 30 | /node_modules/react-native/Libraries/polyfills/.* 31 | 32 | ; Ignore various node_modules 33 | /node_modules/react-native-gesture-handler/.* 34 | /node_modules/expo/.* 35 | /node_modules/react-navigation/.* 36 | /node_modules/xdl/.* 37 | /node_modules/reqwest/.* 38 | /node_modules/metro-bundler/.* 39 | 40 | [include] 41 | 42 | [libs] 43 | node_modules/react-native/Libraries/react-native/react-native-interface.js 44 | node_modules/react-native/flow/ 45 | node_modules/expo/flow/ 46 | 47 | [options] 48 | emoji=true 49 | 50 | module.system=haste 51 | 52 | module.file_ext=.js 53 | module.file_ext=.jsx 54 | module.file_ext=.json 55 | module.file_ext=.ios.js 56 | 57 | munge_underscores=true 58 | 59 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 60 | 61 | suppress_type=$FlowIssue 62 | suppress_type=$FlowFixMe 63 | suppress_type=$FlowFixMeProps 64 | suppress_type=$FlowFixMeState 65 | suppress_type=$FixMe 66 | 67 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\) 68 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+ 69 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 70 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 71 | 72 | unsafe.enable_getters_and_setters=true 73 | 74 | [version] 75 | ^0.56.0 76 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # expo 4 | .expo/ 5 | 6 | # dependencies 7 | /node_modules 8 | 9 | # misc 10 | .env.local 11 | .env.development.local 12 | .env.test.local 13 | .env.production.local 14 | 15 | npm-debug.log* 16 | yarn-debug.log* 17 | yarn-error.log* 18 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /App.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NativeBase KitchenSink App For Vue Native 2 | 3 | This project was bootstrapped with [Vue Native Cli](https://github.com/GeekyAnts/vue-native-cli). 4 | 5 | ## Demo 6 | 7 | | iOS | Android | 8 | | :---------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------: | 9 | | ![ios-demo](https://github.com/GeekyAnts/NativeBase-KitchenSink/raw/master/screenshots/iOS.gif) | ![android-demo](https://github.com/GeekyAnts/NativeBase-KitchenSink/raw/master/screenshots/Android.gif) | 10 | 11 | ## Installation 12 | 13 | * **Clone and install packages** 14 | 15 | ``` 16 | git clone https://github.com/GeekyAnts/KitchenSink-Vue-Native.git 17 | cd KitchenSink-Vue-Native 18 | npm install 19 | ``` 20 | 21 | * **Run on iOS** 22 | * Opt #1: 23 | * Run `npm start` in your terminal 24 | * Scan the QR code in your Expo app 25 | * Opt #2: 26 | * Run `npm run ios` in your terminal 27 | 28 | - **Run on Android** 29 | * Opt #1: 30 | * Run `npm start` in your terminal 31 | * Scan the QR code in your Expo app 32 | * Opt #2: 33 | * Make sure you have an `Android emulator` installed and running 34 | * Run `npm run android` in your terminal 35 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "expo": { 3 | "icon": "./assets/nblogo.png", 4 | "slug": "kitchensinkvuenative", 5 | "orientation": "portrait", 6 | "primaryColor": "#cccccc", 7 | "packagerOpts": { 8 | "config": "metro.config.js", 9 | "sourceExts": [ 10 | "expo.ts", 11 | "expo.tsx", 12 | "expo.js", 13 | "expo.jsx", 14 | "vue", 15 | "js", 16 | "jsx", 17 | "json", 18 | "ts", 19 | "tsx", 20 | "svg", 21 | "wasm" 22 | ], 23 | "assetExts": [ 24 | "ttf" 25 | ] 26 | }, 27 | "androidStatusBarColor": "#334393", 28 | "androidStatusBar": { 29 | "barStyle": "light-content", 30 | "backgroundColor": "#334393" 31 | }, 32 | "name": "kitchenSink-vue-native", 33 | "version": "0.1.0", 34 | "platforms": [ 35 | "android", 36 | "ios" 37 | ] 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /assets/camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/camera.png -------------------------------------------------------------------------------- /assets/contacts/atul.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/contacts/atul.png -------------------------------------------------------------------------------- /assets/contacts/himanshu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/contacts/himanshu.png -------------------------------------------------------------------------------- /assets/contacts/megha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/contacts/megha.png -------------------------------------------------------------------------------- /assets/contacts/pratik.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/contacts/pratik.png -------------------------------------------------------------------------------- /assets/contacts/sanket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/contacts/sanket.png -------------------------------------------------------------------------------- /assets/contacts/sankhadeep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/contacts/sankhadeep.png -------------------------------------------------------------------------------- /assets/contacts/saurabh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/contacts/saurabh.png -------------------------------------------------------------------------------- /assets/contacts/shivraj.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/contacts/shivraj.jpg -------------------------------------------------------------------------------- /assets/contacts/shruti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/contacts/shruti.png -------------------------------------------------------------------------------- /assets/contacts/shweta.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/contacts/shweta.png -------------------------------------------------------------------------------- /assets/contacts/supriya.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/contacts/supriya.png -------------------------------------------------------------------------------- /assets/contacts/varun.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/contacts/varun.png -------------------------------------------------------------------------------- /assets/drawer-cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/drawer-cover.png -------------------------------------------------------------------------------- /assets/launchscreen-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/launchscreen-bg.png -------------------------------------------------------------------------------- /assets/logo-kitchen-sink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/logo-kitchen-sink.png -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/logo.png -------------------------------------------------------------------------------- /assets/nblogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/nblogo.png -------------------------------------------------------------------------------- /assets/splashscreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/splashscreen.png -------------------------------------------------------------------------------- /assets/swiper-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/swiper-1.png -------------------------------------------------------------------------------- /assets/swiper-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/swiper-2.png -------------------------------------------------------------------------------- /assets/swiper-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/swiper-3.png -------------------------------------------------------------------------------- /assets/swiper-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/swiper-4.png -------------------------------------------------------------------------------- /assets/web-cover1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GeekyAnts/KitchenSink-Vue-Native/3931d3512cfffd9212d5ad79e08ac241da0b3f59/assets/web-cover1.jpg -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 GeekyAnts 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for Vue Native 3 | * Borrowed and modified from React Native 4 | * 5 | * @format 6 | */ 7 | 8 | const { getDefaultConfig } = require('@expo/metro-config'); 9 | 10 | const fs = require('fs'); 11 | 12 | module.exports = (async () => { 13 | const { 14 | resolver: { sourceExts, assetExts } 15 | } = await getDefaultConfig(__dirname); 16 | return { 17 | transformer: { 18 | babelTransformerPath: require.resolve("./vueTransformerPlugin.js"), 19 | getTransformOptions: async () => ({ 20 | transform: { 21 | experimentalImportSupport: false, 22 | inlineRequires: false, 23 | }, 24 | }) 25 | }, 26 | resolver: { 27 | assetExts: assetExts.filter((ext) => ext !== 'svg'), 28 | sourceExts: [...sourceExts, "vue", "svg"] 29 | } 30 | }; 31 | })(); -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "kitchenSink-vue-native", 3 | "version": "0.3.0", 4 | "private": true, 5 | "devDependencies": { 6 | "babel-eslint": "^10.0.3", 7 | "eslint": "^6.5.1", 8 | "eslint-config-prettier": "^6.4.0", 9 | "eslint-plugin-prettier": "^3.1.1", 10 | "eslint-plugin-react": "^7.16.0", 11 | "eslint-plugin-vue": "^5.2.3", 12 | "jest-expo": "^40.0.0", 13 | "prettier": "^1.18.2", 14 | "react-test-renderer": "16.8.6", 15 | "vue-native-scripts": "~0.2.0" 16 | }, 17 | "main": "./node_modules/expo/AppEntry.js", 18 | "scripts": { 19 | "start": "expo start", 20 | "eject": "expo eject", 21 | "android": "expo start --android", 22 | "ios": "expo start --ios", 23 | "lint": "eslint ./src ./App.vue --ext .js,.vue", 24 | "lint:fix": "eslint ./src ./App.vue --ext .js,.vue --fix", 25 | "test": "jest" 26 | }, 27 | "jest": { 28 | "preset": "jest-expo" 29 | }, 30 | "dependencies": { 31 | "@expo/metro-config": "^0.1.57", 32 | "expo": "^40.0.0", 33 | "expo-app-loading": "^1.0.1", 34 | "expo-font": "~8.4.0", 35 | "native-base": "^2.15.2", 36 | "react": "16.13.1", 37 | "react-native": "https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz", 38 | "react-native-gesture-handler": "~1.8.0", 39 | "react-native-paper": "^2.16.0", 40 | "react-native-reanimated": "~1.13.0", 41 | "react-native-screens": "~2.15.2", 42 | "react-native-svg": "^12.1.0", 43 | "react-native-svg-transformer": "^0.14.3", 44 | "vue-native-core": "~0.2.0", 45 | "vue-native-helper": "~0.2.0", 46 | "vue-native-router": "~0.2.0" 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/boot/setup.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 48 | 49 | 54 | -------------------------------------------------------------------------------- /src/screens/actionSheet/icon.vue: -------------------------------------------------------------------------------- 1 | 21 | 22 | 57 | -------------------------------------------------------------------------------- /src/screens/actionSheet/index.android.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 57 | -------------------------------------------------------------------------------- /src/screens/actionSheet/index.ios.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 55 | -------------------------------------------------------------------------------- /src/screens/actionSheet/regular.vue: -------------------------------------------------------------------------------- 1 | 21 | 22 | 51 | -------------------------------------------------------------------------------- /src/screens/anatomy/index.vue: -------------------------------------------------------------------------------- 1 | 31 | -------------------------------------------------------------------------------- /src/screens/badge/index.vue: -------------------------------------------------------------------------------- 1 | 46 | 47 | 60 | -------------------------------------------------------------------------------- /src/screens/button/blockButton.vue: -------------------------------------------------------------------------------- 1 | 40 | 41 | 47 | -------------------------------------------------------------------------------- /src/screens/button/customButton.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | 34 | -------------------------------------------------------------------------------- /src/screens/button/defaultButton.vue: -------------------------------------------------------------------------------- 1 | 40 | 41 | 47 | -------------------------------------------------------------------------------- /src/screens/button/disableButton.vue: -------------------------------------------------------------------------------- 1 | 43 | 44 | 54 | -------------------------------------------------------------------------------- /src/screens/button/fullButton.vue: -------------------------------------------------------------------------------- 1 | 40 | 41 | 47 | -------------------------------------------------------------------------------- /src/screens/button/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 85 | 86 | 91 | -------------------------------------------------------------------------------- /src/screens/button/outlineButton.vue: -------------------------------------------------------------------------------- 1 | 40 | 41 | 47 | -------------------------------------------------------------------------------- /src/screens/button/roundedButton.vue: -------------------------------------------------------------------------------- 1 | 40 | 41 | 47 | -------------------------------------------------------------------------------- /src/screens/button/transparentButton.vue: -------------------------------------------------------------------------------- 1 | 40 | 41 | 47 | -------------------------------------------------------------------------------- /src/screens/card/basicCard.vue: -------------------------------------------------------------------------------- 1 | 27 | 28 | 33 | -------------------------------------------------------------------------------- /src/screens/card/carItemButton.vue: -------------------------------------------------------------------------------- 1 | 34 | 35 | 50 | -------------------------------------------------------------------------------- /src/screens/card/cardBordered.vue: -------------------------------------------------------------------------------- 1 | 57 | -------------------------------------------------------------------------------- /src/screens/card/cardHeaderAndFooter.vue: -------------------------------------------------------------------------------- 1 | 56 | 57 | 62 | -------------------------------------------------------------------------------- /src/screens/card/cardImage.vue: -------------------------------------------------------------------------------- 1 | 56 | 57 | 74 | 75 | 84 | -------------------------------------------------------------------------------- /src/screens/card/cardShowcase.vue: -------------------------------------------------------------------------------- 1 | 56 | 57 | 78 | 79 | 89 | -------------------------------------------------------------------------------- /src/screens/card/cardTransparent.vue: -------------------------------------------------------------------------------- 1 | 28 | -------------------------------------------------------------------------------- /src/screens/card/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 81 | 82 | 87 | -------------------------------------------------------------------------------- /src/screens/checkbox/index.vue: -------------------------------------------------------------------------------- 1 | 57 | 58 | 84 | -------------------------------------------------------------------------------- /src/screens/deckSwiper/common/card.vue: -------------------------------------------------------------------------------- 1 | 29 | 30 | 39 | -------------------------------------------------------------------------------- /src/screens/deckSwiper/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 57 | 58 | 63 | -------------------------------------------------------------------------------- /src/screens/deckSwiper/simpleDeckSwiper/index.vue: -------------------------------------------------------------------------------- 1 | 25 | 26 | 78 | -------------------------------------------------------------------------------- /src/screens/fab/basicFab.vue: -------------------------------------------------------------------------------- 1 | 36 | 37 | 56 | -------------------------------------------------------------------------------- /src/screens/fab/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 57 | 58 | 63 | -------------------------------------------------------------------------------- /src/screens/footer/badgeFooter.vue: -------------------------------------------------------------------------------- 1 | 48 | 49 | 87 | 88 | 93 | -------------------------------------------------------------------------------- /src/screens/footer/basicFooter.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 77 | -------------------------------------------------------------------------------- /src/screens/footer/iconFooter.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 77 | -------------------------------------------------------------------------------- /src/screens/footer/iconTextFooter.vue: -------------------------------------------------------------------------------- 1 | 42 | 43 | 81 | -------------------------------------------------------------------------------- /src/screens/footer/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 65 | 66 | 71 | -------------------------------------------------------------------------------- /src/screens/form/disabledInput.vue: -------------------------------------------------------------------------------- 1 | 25 | -------------------------------------------------------------------------------- /src/screens/form/errorInput.vue: -------------------------------------------------------------------------------- 1 | 25 | -------------------------------------------------------------------------------- /src/screens/form/fixedLabelInput.vue: -------------------------------------------------------------------------------- 1 | 32 | -------------------------------------------------------------------------------- /src/screens/form/floatingLabelInput.vue: -------------------------------------------------------------------------------- 1 | 32 | -------------------------------------------------------------------------------- /src/screens/form/iconInput.vue: -------------------------------------------------------------------------------- 1 | 29 | -------------------------------------------------------------------------------- /src/screens/form/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 101 | 102 | 107 | -------------------------------------------------------------------------------- /src/screens/form/inlineLabelInput.vue: -------------------------------------------------------------------------------- 1 | 32 | -------------------------------------------------------------------------------- /src/screens/form/placeholderInput.vue: -------------------------------------------------------------------------------- 1 | 30 | -------------------------------------------------------------------------------- /src/screens/form/regularInput.vue: -------------------------------------------------------------------------------- 1 | 24 | -------------------------------------------------------------------------------- /src/screens/form/roundedInput.vue: -------------------------------------------------------------------------------- 1 | 24 | -------------------------------------------------------------------------------- /src/screens/form/stackedInput.vue: -------------------------------------------------------------------------------- 1 | 32 | -------------------------------------------------------------------------------- /src/screens/form/succesInput.vue: -------------------------------------------------------------------------------- 1 | 25 | -------------------------------------------------------------------------------- /src/screens/form/textAreaInput.vue: -------------------------------------------------------------------------------- 1 | 20 | -------------------------------------------------------------------------------- /src/screens/form/underLineInput.vue: -------------------------------------------------------------------------------- 1 | 24 | -------------------------------------------------------------------------------- /src/screens/header/header1.vue: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /src/screens/header/header2.vue: -------------------------------------------------------------------------------- 1 | 23 | -------------------------------------------------------------------------------- /src/screens/header/header3.vue: -------------------------------------------------------------------------------- 1 | 23 | -------------------------------------------------------------------------------- /src/screens/header/header4.vue: -------------------------------------------------------------------------------- 1 | 23 | -------------------------------------------------------------------------------- /src/screens/header/header5.vue: -------------------------------------------------------------------------------- 1 | 24 | -------------------------------------------------------------------------------- /src/screens/header/header6.vue: -------------------------------------------------------------------------------- 1 | 29 | -------------------------------------------------------------------------------- /src/screens/header/header7.vue: -------------------------------------------------------------------------------- 1 | 20 | -------------------------------------------------------------------------------- /src/screens/header/header8.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | 29 | -------------------------------------------------------------------------------- /src/screens/header/headerNoShadow.vue: -------------------------------------------------------------------------------- 1 | 23 | -------------------------------------------------------------------------------- /src/screens/header/headerSpan.vue: -------------------------------------------------------------------------------- 1 | 19 | -------------------------------------------------------------------------------- /src/screens/header/index.android.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 85 | -------------------------------------------------------------------------------- /src/screens/header/index.ios.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 89 | -------------------------------------------------------------------------------- /src/screens/home/index.vue: -------------------------------------------------------------------------------- 1 | 29 | 30 | 67 | 68 | 98 | -------------------------------------------------------------------------------- /src/screens/icons/familyIcon.vue: -------------------------------------------------------------------------------- 1 | 70 | -------------------------------------------------------------------------------- /src/screens/icons/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 65 | 66 | 71 | -------------------------------------------------------------------------------- /src/screens/icons/platformSpecificIcon.vue: -------------------------------------------------------------------------------- 1 | 42 | 43 | 78 | -------------------------------------------------------------------------------- /src/screens/layout/columnLayout.vue: -------------------------------------------------------------------------------- 1 | 20 | -------------------------------------------------------------------------------- /src/screens/layout/customColumnLayout.vue: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /src/screens/layout/customRowLayout.vue: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /src/screens/layout/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 69 | 70 | 75 | -------------------------------------------------------------------------------- /src/screens/layout/nestedLayout.vue: -------------------------------------------------------------------------------- 1 | 23 | -------------------------------------------------------------------------------- /src/screens/layout/rowLayout.vue: -------------------------------------------------------------------------------- 1 | 20 | -------------------------------------------------------------------------------- /src/screens/list/avatarList.vue: -------------------------------------------------------------------------------- 1 | 36 | 37 | 89 | -------------------------------------------------------------------------------- /src/screens/list/basicList.vue: -------------------------------------------------------------------------------- 1 | 30 | 31 | 49 | -------------------------------------------------------------------------------- /src/screens/list/dividerList.vue: -------------------------------------------------------------------------------- 1 | 62 | -------------------------------------------------------------------------------- /src/screens/list/headerList.vue: -------------------------------------------------------------------------------- 1 | 59 | -------------------------------------------------------------------------------- /src/screens/list/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 81 | 82 | 87 | -------------------------------------------------------------------------------- /src/screens/list/selectedListItem.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 69 | 70 | 75 | -------------------------------------------------------------------------------- /src/screens/list/separatorList.vue: -------------------------------------------------------------------------------- 1 | 43 | -------------------------------------------------------------------------------- /src/screens/list/thumbnailList.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 86 | 87 | 92 | -------------------------------------------------------------------------------- /src/screens/listSwipe/customRowListSwiper.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 28 | 29 | 58 | -------------------------------------------------------------------------------- /src/screens/listSwipe/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 61 | 62 | 67 | -------------------------------------------------------------------------------- /src/screens/picker/backButtonPicker.vue: -------------------------------------------------------------------------------- 1 | 33 | 34 | 55 | 56 | 61 | -------------------------------------------------------------------------------- /src/screens/picker/customHeaderPicker.vue: -------------------------------------------------------------------------------- 1 | 34 | 35 | 80 | 81 | 86 | -------------------------------------------------------------------------------- /src/screens/picker/headerPicker.vue: -------------------------------------------------------------------------------- 1 | 34 | 35 | 62 | 63 | 68 | -------------------------------------------------------------------------------- /src/screens/picker/headerStylePicker.vue: -------------------------------------------------------------------------------- 1 | 35 | 36 | 57 | 58 | 63 | -------------------------------------------------------------------------------- /src/screens/picker/index.android.vue: -------------------------------------------------------------------------------- 1 | 43 | 44 | 61 | 62 | 67 | -------------------------------------------------------------------------------- /src/screens/picker/index.ios.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 85 | 86 | 91 | -------------------------------------------------------------------------------- /src/screens/picker/pickerTextItemText.vue: -------------------------------------------------------------------------------- 1 | 40 | 41 | 62 | 63 | 68 | -------------------------------------------------------------------------------- /src/screens/picker/pickerWithIcon.vue: -------------------------------------------------------------------------------- 1 | 33 | 34 | 55 | 56 | 61 | -------------------------------------------------------------------------------- /src/screens/picker/placeHolderPicker.vue: -------------------------------------------------------------------------------- 1 | 35 | 36 | 57 | 58 | 63 | -------------------------------------------------------------------------------- /src/screens/picker/placeholderPickerNote.vue: -------------------------------------------------------------------------------- 1 | 34 | 35 | 56 | 57 | 62 | -------------------------------------------------------------------------------- /src/screens/picker/regularPicker.vue: -------------------------------------------------------------------------------- 1 | 32 | 33 | 54 | 55 | 60 | -------------------------------------------------------------------------------- /src/screens/searchBar/index.vue: -------------------------------------------------------------------------------- 1 | 20 | -------------------------------------------------------------------------------- /src/screens/segment/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 57 | 58 | 63 | -------------------------------------------------------------------------------- /src/screens/segment/segmentHeader.vue: -------------------------------------------------------------------------------- 1 | 40 | 41 | 58 | -------------------------------------------------------------------------------- /src/screens/segment/segmentTab.vue: -------------------------------------------------------------------------------- 1 | 45 | 46 | 66 | -------------------------------------------------------------------------------- /src/screens/spinner/index.vue: -------------------------------------------------------------------------------- 1 | 25 | -------------------------------------------------------------------------------- /src/screens/tabs/advanceTab.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | 64 | -------------------------------------------------------------------------------- /src/screens/tabs/basicTab.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | 38 | -------------------------------------------------------------------------------- /src/screens/tabs/components/tabFive.vue: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /src/screens/tabs/components/tabFour.vue: -------------------------------------------------------------------------------- 1 | 28 | -------------------------------------------------------------------------------- /src/screens/tabs/components/tabOne.vue: -------------------------------------------------------------------------------- 1 | 39 | -------------------------------------------------------------------------------- /src/screens/tabs/components/tabThree.vue: -------------------------------------------------------------------------------- 1 | 28 | -------------------------------------------------------------------------------- /src/screens/tabs/components/tabTwo.vue: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /src/screens/tabs/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 61 | 62 | 67 | -------------------------------------------------------------------------------- /src/screens/tabs/scrollableTab.vue: -------------------------------------------------------------------------------- 1 | 34 | 35 | 53 | -------------------------------------------------------------------------------- /src/screens/thumbnail/index.vue: -------------------------------------------------------------------------------- 1 | 42 | 43 | 55 | 56 | 61 | -------------------------------------------------------------------------------- /src/screens/toast/basicToast.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 37 | -------------------------------------------------------------------------------- /src/screens/toast/index.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 73 | 74 | 79 | -------------------------------------------------------------------------------- /src/screens/toast/toastButton.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 39 | -------------------------------------------------------------------------------- /src/screens/toast/toastDuration.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 38 | -------------------------------------------------------------------------------- /src/screens/toast/toastPosition.vue: -------------------------------------------------------------------------------- 1 | 25 | 26 | 57 | -------------------------------------------------------------------------------- /src/screens/toast/toastText.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 38 | -------------------------------------------------------------------------------- /src/screens/toast/toastType.vue: -------------------------------------------------------------------------------- 1 | 31 | 32 | 76 | -------------------------------------------------------------------------------- /src/screens/typography/index.vue: -------------------------------------------------------------------------------- 1 | 25 | 26 | 39 | -------------------------------------------------------------------------------- /src/theme/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-unused-vars": "off" 4 | } 5 | } -------------------------------------------------------------------------------- /src/theme/components/Badge.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const badgeTheme = { 5 | ".primary": { 6 | backgroundColor: variables.btnPrimaryBg 7 | }, 8 | ".warning": { 9 | backgroundColor: variables.btnWarningBg 10 | }, 11 | ".info": { 12 | backgroundColor: variables.btnInfoBg 13 | }, 14 | ".success": { 15 | backgroundColor: variables.btnSuccessBg 16 | }, 17 | ".danger": { 18 | backgroundColor: variables.btnDangerBg 19 | }, 20 | "NativeBase.Text": { 21 | color: variables.badgeColor, 22 | fontSize: variables.fontSizeBase, 23 | lineHeight: variables.lineHeight - 1, 24 | textAlign: "center", 25 | paddingHorizontal: 3 26 | }, 27 | backgroundColor: variables.badgeBg, 28 | padding: variables.badgePadding, 29 | paddingHorizontal: 6, 30 | alignSelf: "flex-start", 31 | justifyContent: variables.platform === "ios" ? "center" : undefined, 32 | borderRadius: 13.5, 33 | height: 27 34 | }; 35 | return badgeTheme; 36 | }; 37 | -------------------------------------------------------------------------------- /src/theme/components/Body.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const bodyTheme = { 5 | flex: 1, 6 | alignItems: "center", 7 | alignSelf: "center" 8 | }; 9 | 10 | return bodyTheme; 11 | }; 12 | -------------------------------------------------------------------------------- /src/theme/components/Card.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const cardTheme = { 5 | ".transparent": { 6 | shadowColor: null, 7 | shadowOffset: null, 8 | shadowOpacity: null, 9 | shadowRadius: null, 10 | elevation: null 11 | }, 12 | marginVertical: 5, 13 | marginHorizontal: 2, 14 | flex: 1, 15 | borderWidth: variables.borderWidth, 16 | borderRadius: 2, 17 | borderColor: variables.cardBorderColor, 18 | flexWrap: "nowrap", 19 | backgroundColor: variables.cardDefaultBg, 20 | shadowColor: "#000", 21 | shadowOffset: { width: 0, height: 2 }, 22 | shadowOpacity: 0.1, 23 | shadowRadius: 1.5, 24 | elevation: 3 25 | }; 26 | 27 | return cardTheme; 28 | }; 29 | -------------------------------------------------------------------------------- /src/theme/components/CheckBox.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const checkBoxTheme = { 5 | ".checked": { 6 | "NativeBase.Icon": { 7 | color: variables.checkboxTickColor 8 | }, 9 | "NativeBase.IconNB": { 10 | color: variables.checkboxTickColor 11 | } 12 | }, 13 | "NativeBase.Icon": { 14 | color: "transparent", 15 | lineHeight: variables.CheckboxIconSize, 16 | marginTop: variables.CheckboxIconMarginTop, 17 | fontSize: variables.CheckboxFontSize 18 | }, 19 | "NativeBase.IconNB": { 20 | color: "transparent", 21 | lineHeight: variables.CheckboxIconSize, 22 | marginTop: variables.CheckboxIconMarginTop, 23 | fontSize: variables.CheckboxFontSize 24 | }, 25 | borderRadius: variables.CheckboxRadius, 26 | overflow: "hidden", 27 | width: variables.checkboxSize, 28 | height: variables.checkboxSize, 29 | borderWidth: variables.CheckboxBorderWidth, 30 | paddingLeft: variables.CheckboxPaddingLeft - 1, 31 | paddingBottom: variables.CheckboxPaddingBottom, 32 | left: 10 33 | }; 34 | 35 | return checkBoxTheme; 36 | }; 37 | -------------------------------------------------------------------------------- /src/theme/components/Container.js: -------------------------------------------------------------------------------- 1 | import { Platform, Dimensions } from "react-native"; 2 | 3 | import variable from "./../variables/platform"; 4 | 5 | const deviceHeight = Dimensions.get("window").height; 6 | export default (variables = variable) => { 7 | const theme = { 8 | flex: 1, 9 | height: Platform.OS === "ios" ? deviceHeight : deviceHeight - 20 10 | }; 11 | 12 | return theme; 13 | }; 14 | -------------------------------------------------------------------------------- /src/theme/components/Content.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const contentTheme = { 5 | flex: 1, 6 | backgroundColor: "transparent", 7 | "NativeBase.Segment": { 8 | borderWidth: 0, 9 | backgroundColor: "transparent" 10 | } 11 | }; 12 | 13 | return contentTheme; 14 | }; 15 | -------------------------------------------------------------------------------- /src/theme/components/Fab.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const platform = variables.platform; 5 | 6 | const fabTheme = { 7 | "NativeBase.Button": { 8 | alignItems: "center", 9 | padding: null, 10 | justifyContent: "center", 11 | "NativeBase.Icon": { 12 | alignSelf: "center", 13 | fontSize: 20, 14 | marginLeft: 0, 15 | marginRight: 0 16 | }, 17 | "NativeBase.IconNB": { 18 | alignSelf: "center", 19 | fontSize: 20, 20 | marginLeft: 0, 21 | marginRight: 0 22 | } 23 | } 24 | }; 25 | 26 | return fabTheme; 27 | }; 28 | -------------------------------------------------------------------------------- /src/theme/components/FooterTab.js: -------------------------------------------------------------------------------- 1 | import { Platform } from "react-native"; 2 | 3 | import variable from "./../variables/platform"; 4 | 5 | export default (variables = variable) => { 6 | const platform = variables.platform; 7 | 8 | const footerTabTheme = { 9 | "NativeBase.Button": { 10 | ".active": { 11 | "NativeBase.Text": { 12 | color: variables.tabBarActiveTextColor, 13 | fontSize: variables.tabBarTextSize, 14 | lineHeight: 16 15 | }, 16 | "NativeBase.Icon": { 17 | color: variables.tabBarActiveTextColor 18 | }, 19 | "NativeBase.IconNB": { 20 | color: variables.tabBarActiveTextColor 21 | }, 22 | backgroundColor: variables.tabActiveBgColor 23 | }, 24 | flexDirection: null, 25 | backgroundColor: "transparent", 26 | borderColor: null, 27 | elevation: 0, 28 | shadowColor: null, 29 | shadowOffset: null, 30 | shadowRadius: null, 31 | shadowOpacity: null, 32 | alignSelf: "center", 33 | flex: 1, 34 | height: variables.footerHeight - (variables.isIphoneX ? 34 : 0), 35 | justifyContent: "center", 36 | ".badge": { 37 | "NativeBase.Badge": { 38 | "NativeBase.Text": { 39 | fontSize: 11, 40 | fontWeight: platform === "ios" ? "600" : undefined, 41 | lineHeight: 14 42 | }, 43 | top: -3, 44 | alignSelf: "center", 45 | left: 10, 46 | zIndex: 99, 47 | height: 18, 48 | padding: 1.7, 49 | paddingHorizontal: 3 50 | }, 51 | "NativeBase.Icon": { 52 | marginTop: -18 53 | } 54 | }, 55 | "NativeBase.Icon": { 56 | color: variables.tabBarTextColor 57 | }, 58 | "NativeBase.IconNB": { 59 | color: variables.tabBarTextColor 60 | }, 61 | "NativeBase.Text": { 62 | color: variables.tabBarTextColor, 63 | fontSize: variables.tabBarTextSize, 64 | lineHeight: 16 65 | } 66 | }, 67 | backgroundColor: 68 | Platform.OS === "android" ? variables.footerDefaultBg : undefined, 69 | flexDirection: "row", 70 | justifyContent: "space-between", 71 | flex: 1, 72 | alignSelf: "stretch" 73 | }; 74 | 75 | return footerTabTheme; 76 | }; 77 | -------------------------------------------------------------------------------- /src/theme/components/Form.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const platform = variables.platform; 5 | 6 | const theme = { 7 | "NativeBase.Item": { 8 | ".fixedLabel": { 9 | "NativeBase.Label": { 10 | paddingLeft: null 11 | }, 12 | marginLeft: 15 13 | }, 14 | ".inlineLabel": { 15 | "NativeBase.Label": { 16 | paddingLeft: null 17 | }, 18 | marginLeft: 15 19 | }, 20 | ".placeholderLabel": { 21 | "NativeBase.Input": {} 22 | }, 23 | ".stackedLabel": { 24 | "NativeBase.Label": { 25 | top: 5, 26 | paddingLeft: null 27 | }, 28 | "NativeBase.Input": { 29 | paddingLeft: null, 30 | marginLeft: null 31 | }, 32 | "NativeBase.Icon": { 33 | marginTop: 36 34 | }, 35 | marginLeft: 15 36 | }, 37 | ".floatingLabel": { 38 | "NativeBase.Input": { 39 | paddingLeft: null, 40 | top: 10, 41 | marginLeft: null 42 | }, 43 | "NativeBase.Label": { 44 | left: 0, 45 | top: 6 46 | }, 47 | "NativeBase.Icon": { 48 | top: 6 49 | }, 50 | marginTop: 15, 51 | marginLeft: 15 52 | }, 53 | ".regular": { 54 | "NativeBase.Label": { 55 | left: 0 56 | }, 57 | marginLeft: 0 58 | }, 59 | ".rounded": { 60 | "NativeBase.Label": { 61 | left: 0 62 | }, 63 | marginLeft: 0 64 | }, 65 | ".underline": { 66 | "NativeBase.Label": { 67 | left: 0, 68 | top: 0, 69 | position: "relative" 70 | }, 71 | "NativeBase.Input": { 72 | left: -15 73 | }, 74 | marginLeft: 15 75 | }, 76 | ".last": { 77 | marginLeft: 0, 78 | paddingLeft: 15 79 | }, 80 | "NativeBase.Label": { 81 | paddingRight: 5 82 | }, 83 | marginLeft: 15 84 | } 85 | }; 86 | 87 | return theme; 88 | }; 89 | -------------------------------------------------------------------------------- /src/theme/components/H1.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const h1Theme = { 5 | color: variables.textColor, 6 | fontSize: variables.fontSizeH1, 7 | lineHeight: variables.lineHeightH1 8 | }; 9 | 10 | return h1Theme; 11 | }; 12 | -------------------------------------------------------------------------------- /src/theme/components/H2.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const h2Theme = { 5 | color: variables.textColor, 6 | fontSize: variables.fontSizeH2, 7 | lineHeight: variables.lineHeightH2 8 | }; 9 | 10 | return h2Theme; 11 | }; 12 | -------------------------------------------------------------------------------- /src/theme/components/H3.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const h3Theme = { 5 | color: variables.textColor, 6 | fontSize: variables.fontSizeH3, 7 | lineHeight: variables.lineHeightH3 8 | }; 9 | 10 | return h3Theme; 11 | }; 12 | -------------------------------------------------------------------------------- /src/theme/components/Icon.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const iconTheme = { 5 | fontSize: variables.iconFontSize, 6 | color: "#000" 7 | }; 8 | 9 | return iconTheme; 10 | }; 11 | -------------------------------------------------------------------------------- /src/theme/components/Input.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const inputTheme = { 5 | ".multiline": { 6 | height: null 7 | }, 8 | height: variables.inputHeightBase, 9 | color: variables.inputColor, 10 | paddingLeft: 5, 11 | paddingRight: 5, 12 | flex: 1, 13 | fontSize: variables.inputFontSize, 14 | lineHeight: variables.inputLineHeight 15 | }; 16 | 17 | return inputTheme; 18 | }; 19 | -------------------------------------------------------------------------------- /src/theme/components/Label.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const labelTheme = { 5 | ".focused": { 6 | width: 0 7 | }, 8 | fontSize: 17 9 | }; 10 | 11 | return labelTheme; 12 | }; 13 | -------------------------------------------------------------------------------- /src/theme/components/Left.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const leftTheme = { 5 | flex: 1, 6 | alignSelf: "center", 7 | alignItems: "flex-start" 8 | }; 9 | 10 | return leftTheme; 11 | }; 12 | -------------------------------------------------------------------------------- /src/theme/components/Picker.android.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const pickerTheme = { 5 | ".note": { 6 | color: "#8F8E95" 7 | }, 8 | width: 90, 9 | marginRight: -4 10 | }; 11 | 12 | return pickerTheme; 13 | }; 14 | -------------------------------------------------------------------------------- /src/theme/components/Picker.ios.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const pickerTheme = {}; 5 | 6 | return pickerTheme; 7 | }; 8 | -------------------------------------------------------------------------------- /src/theme/components/Picker.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const pickerTheme = { 5 | ".note": { 6 | color: "#8F8E95" 7 | }, 8 | width: 90, 9 | marginRight: -4 10 | }; 11 | 12 | return pickerTheme; 13 | }; 14 | -------------------------------------------------------------------------------- /src/theme/components/Radio.js: -------------------------------------------------------------------------------- 1 | import { Platform } from "react-native"; 2 | 3 | import variable from "./../variables/platform"; 4 | 5 | export default (variables = variable) => { 6 | const radioTheme = { 7 | ".selected": { 8 | "NativeBase.IconNB": { 9 | color: 10 | Platform.OS === "ios" 11 | ? variables.radioColor 12 | : variables.radioSelectedColorAndroid, 13 | lineHeight: Platform.OS === "ios" ? 25 : variables.radioBtnLineHeight, 14 | height: Platform.OS === "ios" ? 20 : undefined 15 | } 16 | }, 17 | "NativeBase.IconNB": { 18 | color: Platform.OS === "ios" ? "transparent" : undefined, 19 | lineHeight: 20 | Platform.OS === "ios" ? undefined : variables.radioBtnLineHeight, 21 | fontSize: Platform.OS === "ios" ? undefined : variables.radioBtnSize 22 | } 23 | }; 24 | 25 | return radioTheme; 26 | }; 27 | -------------------------------------------------------------------------------- /src/theme/components/Right.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const rightTheme = { 5 | "NativeBase.Button": { 6 | alignSelf: null 7 | }, 8 | flex: 1, 9 | alignSelf: "center", 10 | alignItems: "flex-end" 11 | }; 12 | 13 | return rightTheme; 14 | }; 15 | -------------------------------------------------------------------------------- /src/theme/components/Segment.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const platform = variables.platform; 5 | 6 | const segmentTheme = { 7 | height: 45, 8 | borderColor: variables.segmentBorderColorMain, 9 | flexDirection: "row", 10 | justifyContent: "center", 11 | backgroundColor: variables.segmentBackgroundColor, 12 | "NativeBase.Button": { 13 | alignSelf: "center", 14 | borderRadius: 0, 15 | paddingHorizontal: 20, 16 | height: 30, 17 | backgroundColor: "transparent", 18 | borderWidth: 1, 19 | borderLeftWidth: 0, 20 | borderColor: variables.segmentBorderColor, 21 | elevation: 0, 22 | ".active": { 23 | backgroundColor: variables.segmentActiveBackgroundColor, 24 | "NativeBase.Text": { 25 | color: variables.segmentActiveTextColor 26 | } 27 | }, 28 | ".first": { 29 | borderTopLeftRadius: platform === "ios" ? 5 : undefined, 30 | borderBottomLeftRadius: platform === "ios" ? 5 : undefined, 31 | borderLeftWidth: 1 32 | }, 33 | ".last": { 34 | borderTopRightRadius: platform === "ios" ? 5 : undefined, 35 | borderBottomRightRadius: platform === "ios" ? 5 : undefined 36 | }, 37 | "NativeBase.Text": { 38 | color: variables.segmentTextColor, 39 | fontSize: 14 40 | } 41 | } 42 | }; 43 | 44 | return segmentTheme; 45 | }; 46 | -------------------------------------------------------------------------------- /src/theme/components/Separator.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const theme = { 5 | ".group": { 6 | height: 50, 7 | paddingVertical: variables.listItemPadding - 8, 8 | paddingTop: variables.listItemPadding + 12, 9 | ".bordered": { 10 | height: 50, 11 | paddingVertical: variables.listItemPadding - 8, 12 | paddingTop: variables.listItemPadding + 12 13 | } 14 | }, 15 | ".bordered": { 16 | ".noTopBorder": { 17 | borderTopWidth: 0 18 | }, 19 | ".noBottomBorder": { 20 | borderBottomWidth: 0 21 | }, 22 | height: 35, 23 | paddingTop: variables.listItemPadding + 2, 24 | paddingBottom: variables.listItemPadding, 25 | borderBottomWidth: variables.borderWidth, 26 | borderTopWidth: variables.borderWidth, 27 | borderColor: variables.listBorderColor 28 | }, 29 | "NativeBase.Text": { 30 | fontSize: variables.tabBarTextSize - 2, 31 | color: "#777" 32 | }, 33 | ".noTopBorder": { 34 | borderTopWidth: 0 35 | }, 36 | ".noBottomBorder": { 37 | borderBottomWidth: 0 38 | }, 39 | height: 38, 40 | backgroundColor: "#F0EFF5", 41 | flex: 1, 42 | justifyContent: "center", 43 | paddingLeft: variables.listItemPadding + 5 44 | }; 45 | 46 | return theme; 47 | }; 48 | -------------------------------------------------------------------------------- /src/theme/components/Spinner.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const spinnerTheme = { 5 | height: 80 6 | }; 7 | 8 | return spinnerTheme; 9 | }; 10 | -------------------------------------------------------------------------------- /src/theme/components/Subtitle.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const subtitleTheme = { 5 | fontSize: variables.subTitleFontSize, 6 | fontFamily: variables.titleFontfamily, 7 | color: variables.subtitleColor, 8 | textAlign: "center" 9 | }; 10 | 11 | return subtitleTheme; 12 | }; 13 | -------------------------------------------------------------------------------- /src/theme/components/SwipeRow.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const swipeRowTheme = { 5 | "NativeBase.ListItem": { 6 | ".list": { 7 | backgroundColor: "#FFF" 8 | }, 9 | marginLeft: 0 10 | }, 11 | "NativeBase.Left": { 12 | flex: 0, 13 | alignSelf: null, 14 | alignItems: null, 15 | "NativeBase.Button": { 16 | flex: 1, 17 | alignItems: "center", 18 | justifyContent: "center", 19 | alignSelf: "stretch", 20 | borderRadius: 0 21 | } 22 | }, 23 | "NativeBase.Right": { 24 | flex: 0, 25 | alignSelf: null, 26 | alignItems: null, 27 | "NativeBase.Button": { 28 | flex: 1, 29 | alignItems: "center", 30 | justifyContent: "center", 31 | alignSelf: "stretch", 32 | borderRadius: 0 33 | } 34 | }, 35 | "NativeBase.Button": { 36 | flex: 1, 37 | height: null, 38 | alignItems: "center", 39 | justifyContent: "center", 40 | alignSelf: "stretch", 41 | borderRadius: 0 42 | } 43 | }; 44 | 45 | return swipeRowTheme; 46 | }; 47 | -------------------------------------------------------------------------------- /src/theme/components/Switch.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const switchTheme = { 5 | marginVertical: -5 6 | }; 7 | 8 | return switchTheme; 9 | }; 10 | -------------------------------------------------------------------------------- /src/theme/components/Tab.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const tabTheme = { 5 | flex: 1, 6 | backgroundColor: "#FFF" 7 | }; 8 | 9 | return tabTheme; 10 | }; 11 | -------------------------------------------------------------------------------- /src/theme/components/TabBar.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const tabBarTheme = { 5 | ".tabIcon": { 6 | height: undefined 7 | }, 8 | ".vertical": { 9 | height: 60 10 | }, 11 | "NativeBase.Button": { 12 | ".transparent": { 13 | "NativeBase.Text": { 14 | fontSize: variables.tabFontSize, 15 | color: variables.sTabBarActiveTextColor, 16 | fontWeight: "400" 17 | }, 18 | "NativeBase.IconNB": { 19 | color: variables.sTabBarActiveTextColor 20 | } 21 | }, 22 | "NativeBase.IconNB": { 23 | color: variables.sTabBarActiveTextColor 24 | }, 25 | "NativeBase.Text": { 26 | fontSize: variables.tabFontSize, 27 | color: variables.sTabBarActiveTextColor, 28 | fontWeight: "400" 29 | }, 30 | ".isTabActive": { 31 | "NativeBase.Text": { 32 | fontWeight: "900" 33 | } 34 | }, 35 | flex: 1, 36 | alignSelf: "stretch", 37 | alignItems: "center", 38 | justifyContent: "center", 39 | borderRadius: null, 40 | borderBottomColor: "transparent", 41 | backgroundColor: variables.tabBgColor 42 | }, 43 | height: 45, 44 | flexDirection: "row", 45 | justifyContent: "space-around", 46 | borderWidth: 1, 47 | borderTopWidth: 0, 48 | borderLeftWidth: 0, 49 | borderRightWidth: 0, 50 | borderBottomColor: "#ccc", 51 | backgroundColor: variables.tabBgColor 52 | }; 53 | 54 | return tabBarTheme; 55 | }; 56 | -------------------------------------------------------------------------------- /src/theme/components/TabContainer.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | import { Platform } from "react-native"; 3 | 4 | export default (variables = variable) => { 5 | const platformStyle = variables.platformStyle; 6 | const platform = variables.platform; 7 | 8 | const tabContainerTheme = { 9 | elevation: 3, 10 | height: 50, 11 | flexDirection: "row", 12 | shadowColor: platformStyle === "material" ? "#000" : undefined, 13 | shadowOffset: 14 | platformStyle === "material" ? { width: 0, height: 2 } : undefined, 15 | shadowOpacity: platformStyle === "material" ? 0.2 : undefined, 16 | shadowRadius: platformStyle === "material" ? 1.2 : undefined, 17 | justifyContent: "space-around", 18 | borderBottomWidth: Platform.OS === "ios" ? variables.borderWidth : 0, 19 | borderColor: variables.topTabBarBorderColor 20 | }; 21 | 22 | return tabContainerTheme; 23 | }; 24 | -------------------------------------------------------------------------------- /src/theme/components/TabHeading.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const platform = variables.platform; 5 | 6 | const tabHeadingTheme = { 7 | flexDirection: "row", 8 | backgroundColor: variables.tabDefaultBg, 9 | flex: 1, 10 | alignItems: "center", 11 | justifyContent: "center", 12 | ".scrollable": { 13 | paddingHorizontal: 20, 14 | flex: platform === "android" ? 0 : 1, 15 | minWidth: platform === "android" ? undefined : 60 16 | }, 17 | "NativeBase.Text": { 18 | color: variables.topTabBarTextColor, 19 | marginHorizontal: 7 20 | }, 21 | "NativeBase.Icon": { 22 | color: variables.topTabBarTextColor, 23 | fontSize: platform === "ios" ? 26 : undefined 24 | }, 25 | ".active": { 26 | "NativeBase.Text": { 27 | color: variables.topTabBarActiveTextColor, 28 | fontWeight: "600" 29 | }, 30 | "NativeBase.Icon": { 31 | color: variables.topTabBarActiveTextColor 32 | } 33 | } 34 | }; 35 | 36 | return tabHeadingTheme; 37 | }; 38 | -------------------------------------------------------------------------------- /src/theme/components/Text.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const textTheme = { 5 | fontSize: variables.DefaultFontSize - 1, 6 | fontFamily: variables.fontFamily, 7 | color: variables.textColor, 8 | ".note": { 9 | color: "#a7a7a7", 10 | fontSize: variables.noteFontSize 11 | } 12 | }; 13 | 14 | return textTheme; 15 | }; 16 | -------------------------------------------------------------------------------- /src/theme/components/Textarea.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const textAreaTheme = { 5 | ".underline": { 6 | borderBottomWidth: variables.borderWidth, 7 | marginTop: 5, 8 | borderColor: variables.inputBorderColor 9 | }, 10 | ".bordered": { 11 | borderWidth: 1, 12 | marginTop: 5, 13 | borderColor: variables.inputBorderColor 14 | }, 15 | color: variables.textColor, 16 | paddingLeft: 10, 17 | paddingRight: 5, 18 | fontSize: 15, 19 | textAlignVertical: "top" 20 | }; 21 | 22 | return textAreaTheme; 23 | }; 24 | -------------------------------------------------------------------------------- /src/theme/components/Thumbnail.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const thumbnailTheme = { 5 | ".square": { 6 | borderRadius: 0, 7 | ".small": { 8 | width: 36, 9 | height: 36, 10 | borderRadius: 0 11 | }, 12 | ".large": { 13 | width: 80, 14 | height: 80, 15 | borderRadius: 0 16 | } 17 | }, 18 | ".small": { 19 | width: 36, 20 | height: 36, 21 | borderRadius: 18, 22 | ".square": { 23 | borderRadius: 0 24 | } 25 | }, 26 | ".large": { 27 | width: 80, 28 | height: 80, 29 | borderRadius: 40, 30 | ".square": { 31 | borderRadius: 0 32 | } 33 | }, 34 | width: 56, 35 | height: 56, 36 | borderRadius: 28 37 | }; 38 | 39 | return thumbnailTheme; 40 | }; 41 | -------------------------------------------------------------------------------- /src/theme/components/Title.js: -------------------------------------------------------------------------------- 1 | import { Platform } from "react-native"; 2 | 3 | import variable from "./../variables/platform"; 4 | 5 | export default (variables = variable) => { 6 | const titleTheme = { 7 | fontSize: variables.titleFontSize, 8 | fontFamily: variables.titleFontfamily, 9 | color: variables.titleFontColor, 10 | fontWeight: Platform.OS === "ios" ? "600" : undefined, 11 | textAlign: "center" 12 | }; 13 | 14 | return titleTheme; 15 | }; 16 | -------------------------------------------------------------------------------- /src/theme/components/Toast.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const platform = variables.platform; 5 | 6 | const toastTheme = { 7 | ".danger": { 8 | backgroundColor: variables.brandDanger 9 | }, 10 | ".warning": { 11 | backgroundColor: variables.brandWarning 12 | }, 13 | ".success": { 14 | backgroundColor: variables.brandSuccess 15 | }, 16 | backgroundColor: "rgba(0,0,0,0.8)", 17 | borderRadius: platform === "ios" ? 5 : 0, 18 | flexDirection: "row", 19 | justifyContent: "space-between", 20 | alignItems: "center", 21 | padding: 10, 22 | minHeight: 50, 23 | "NativeBase.Text": { 24 | color: "#fff", 25 | flex: 1 26 | }, 27 | "NativeBase.Button": { 28 | backgroundColor: "transparent", 29 | height: 30, 30 | elevation: 0, 31 | "NativeBase.Text": { 32 | fontSize: 14 33 | } 34 | } 35 | }; 36 | 37 | return toastTheme; 38 | }; 39 | -------------------------------------------------------------------------------- /src/theme/components/View.js: -------------------------------------------------------------------------------- 1 | import variable from "./../variables/platform"; 2 | 3 | export default (variables = variable) => { 4 | const viewTheme = { 5 | ".padder": { 6 | padding: variables.contentPadding 7 | } 8 | }; 9 | 10 | return viewTheme; 11 | }; 12 | -------------------------------------------------------------------------------- /vueTransformerPlugin.js: -------------------------------------------------------------------------------- 1 | // For React Native version 0.59 or later 2 | var upstreamTransformer = require("metro-react-native-babel-transformer"); 3 | 4 | var vueNativeScripts = require("vue-native-scripts"); 5 | var vueExtensions = ["vue"]; // <-- Add other extensions if needed. 6 | var rnSVGTransformer = require('react-native-svg-transformer'); 7 | 8 | module.exports.transform = function({ src, filename, options }) { 9 | if (vueExtensions.some(ext => filename.endsWith("." + ext))) { 10 | return vueNativeScripts.transform({ src, filename, options }); 11 | } 12 | return rnSVGTransformer.transform( src, filename, options ); 13 | }; 14 | --------------------------------------------------------------------------------