Skip to content

Instantly share code, notes, and snippets.

@shawn-kb
shawn-kb / SiteTabNavigator.js
Created February 23, 2018 16:28
trouble with navigator
import React from 'react';
import Colors from '../constants/Colors';
import { Platform } from 'react-native';
import { TouchableOpacity } from 'react-native';
import { Button, Icon} from 'react-native-elements'
import { Ionicons } from '@expo/vector-icons';
import { TabNavigator, TabBarTop } from 'react-navigation';
import { NavigationActions } from 'react-navigation'
import RootNavigation from './RootNavigation';
@shawn-kb
shawn-kb / SiteTabNavigator.js
Created February 22, 2018 21:45
tabNavigator issue
import React from 'react';
import Colors from '../constants/Colors';
import { Platform } from 'react-native';
import { Button } from 'react-native';
import { Ionicons } from '@expo/vector-icons';
import { TabNavigator, TabBarTop } from 'react-navigation';
import { NavigationActions } from 'react-navigation'
import RootNavigation from './RootNavigation';
import SiteDrawer from './SiteDrawer';
@shawn-kb
shawn-kb / control.js
Created February 1, 2018 18:20
ugly buttons
import React from 'react';
import {
ScrollView,
StyleSheet,
Modal,
Text,
TextInput,
TouchableOpacity,
View,
Platform,
@shawn-kb
shawn-kb / pivotCircle.js
Created November 24, 2017 22:40
PivotCircle
import React from 'react';
import Svg,{
Circle,
Ellipse,
G,
LinearGradient,
RadialGradient,
Line,
Path,
Polygon,
@shawn-kb
shawn-kb / PivotCircle.js
Created November 24, 2017 22:05
render a circle (svg)
import React from 'react';
import Svg,{
Circle,
Ellipse,
G,
LinearGradient,
RadialGradient,
Line,
Path,
Polygon,
@shawn-kb
shawn-kb / clearList.js
Created November 18, 2017 03:16
not getting the props
App.js | n/RootNavigation.js | n/MainTabNavigator.js s/SettingsScreen.js s/SystemStore.js | s/SummaryScreen.js | buffers
import React from 'react';
import {Text, Button, Alert, StyleSheet, View } from 'react-native';
// Mobx state stores
import { inject, observer, Provider } from 'mobx-react';
import { observable, action } from "mobx";
import stores from '../stores/stores';
export default class SettingsScreen extends React.Component {
@shawn-kb
shawn-kb / App.js
Created November 16, 2017 20:13
why my view is loading before the promises are finished
import React from 'react';
import { Alert, Platform, StatusBar, StyleSheet, View } from 'react-native';
import { AppLoading, Asset, Font } from 'expo';
import { Ionicons } from '@expo/vector-icons';
import {NavigationActions} from 'react-navigation'
import RootNavigation from './navigation/RootNavigation';
var DevicePersistantStore = require('react-native-simple-store');
@shawn-kb
shawn-kb / app.js
Created November 14, 2017 22:06
still having trouble with Mobix
import React from 'react';
import { Platform, StatusBar, StyleSheet, View } from 'react-native';
import { AppLoading, Asset, Font } from 'expo';
import { Ionicons } from '@expo/vector-icons';
import {NavigationActions} from 'react-navigation'
import RootNavigation from './navigation/RootNavigation';
var DevicePersistantStore = require('react-native-simple-store');
@shawn-kb
shawn-kb / app.js
Created November 14, 2017 21:14
still doing something wrong. cannot pass a store
import React from 'react';
import { Platform, StatusBar, StyleSheet, View } from 'react-native';
import { AppLoading, Asset, Font } from 'expo';
import { Ionicons } from '@expo/vector-icons';
import {NavigationActions} from 'react-navigation'
import RootNavigation from './navigation/RootNavigation';
var DevicePersistantStore = require('react-native-simple-store');
@shawn-kb
shawn-kb / app.js
Created November 14, 2017 17:06
cannot seem to inject a store
import React from 'react';
import { Platform, StatusBar, StyleSheet, View } from 'react-native';
import { AppLoading, Asset, Font } from 'expo';
import { Ionicons } from '@expo/vector-icons';
import {NavigationActions} from 'react-navigation'
import RootNavigation from './navigation/RootNavigation';
var DevicePersistantStore = require('react-native-simple-store');