Skip to content

Instantly share code, notes, and snippets.

View marcusvbp's full-sized avatar

Marcus Vinícius marcusvbp

View GitHub Profile
import React, { Component } from 'react'
import { ActionSheet, Header, Container, Content, Right, Left, Body,Title, View, Grid, Col, H2, H3, Text, Form, Picker, Item, Input, Button, Thumbnail } from 'native-base'
import { Image, TouchableOpacity, Platform } from 'react-native'
import Icon from 'react-native-vector-icons/FontAwesome'
import styles from './styles'
import mainStyles from '../../Assets/Styles/Styles'
// import LocalizedStrings from 'react-native-localization';
// import ptbr from '../../Locales/register/ptbr'
// import en from '../../Locales/register/en'
import React, { Component } from 'react';
import {
Container,
Content,
Form,
Item,
Input,
Label,
H1,
H2,
import React, { Component } from 'react';
import {
View,
Button,
Icon,
ActionSheet,
Root
} from 'native-base';
import { StyleSheet } from 'react-native';
import { AppStorage } from '../../../services/storage.service'
const VuexAppStorage = store => {
let gettedFromStorage = false
store.subscribe((mutation, state) => {
let lStorage = AppStorage.getItem('AppStorage')
if (lStorage && Object.keys(lStorage).length > 0 && !gettedFromStorage) {
@marcusvbp
marcusvbp / vons-select-component.vue
Created August 5, 2017 11:36
A v-ons-select (Onsen UI + Vue) alternative
<template>
<div class="vons-select">
<v-ons-button modifier="quiet" @click="dialog = true">
<span v-if="value.length > 0">{{ value }}</span>
<span v-else>{{ label }}</span>
<span class="arrow">&dtrif;</span>
</v-ons-button>
<v-ons-alert-dialog cancelable modifier="rowfooter" :visible.sync="dialog" class="vons-select-dialog">
<span slot="title">{{ label }}</span>