I hereby claim:
- I am dantman on github.
- I am dantman (https://keybase.io/dantman) on keybase.
- I have a public key ASC7jATCYRenYm-biehrUI-OGVElMbPiszWhH5-jXsJ6jQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
using VRUB; | |
[ExposedClass] | |
class PersistentStore : ExposedClass { // base class could use a different name | |
Dictionary<string, string> _temporaryStore = new Dictionary<string, string>(); | |
Dictionary<string, string> _persistentStore = new Dictionary<string, string>(); | |
[ExposedMethod] | |
public string Get(string key, bool temporary = false) { |
render() { | |
const {styles, onLogout} = this; | |
const {onOverlayStateChanged} = this; | |
const {materialTheme, sections: rawSections, navigation, screenProps: {statusBarHeight}, user, activeCompany, company, teams} = this.props; | |
const {overlayOpen} = this.state; | |
const sections = navigation.state.routes::groupBy((route) => this._getScreenOptions(route.key).drawerSection); | |
const {companyList=[]} = user || {}; | |
const children = []; | |
let first = true; |
export default class App extends PureComponent { | |
state = { | |
statusBarHeight: Platform.OS === 'android' | |
? StatusBar.currentHeight || (Platform.Version < 23 ? 25 : 24) | |
: 0, | |
}; | |
render() { | |
const {styles} = this; |
Take components from react-native-material-design and react-native-material-kit and create a new library to replace both.
Deciding how to handle ripples will be very important as both do it differently.
rnmd does it using a Ripple polyfill:
import React, {PureComponent} from 'react'; | |
import {View} from 'react-native'; | |
import Styles from './Styles'; | |
@Styles({ | |
root: { | |
// ... | |
}, | |
}) | |
export default class Example extends PureComponent { |
'use strict'; | |
import Promise from 'bluebird'; | |
import { map, clone } from 'lodash'; | |
import Client_SQLite3 from 'knex/lib/dialects/sqlite3'; | |
export default class Client_ReactNativeSqliteStorage extends Client_SQLite3 { | |
dialect: 'sqlite'; | |
driverName = 'react-native-sqlite-storage'; | |
_driver() { |
html { | |
font-size: 14px; | |
} | |
/** | |
* PostCSS | |
* Use a custom PostCSS to convert #sp to rems by dividing the number by 14 and expressing it as #rem | |
*/ | |
body { |