This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { | |
Platform, | |
StyleSheet, | |
Text, | |
View, | |
TouchableHighlight, | |
Button | |
} from 'react-native'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
realm-js git:(master) ✗ nvm use default | |
Now using node v8.6.0 (npm v5.3.0) | |
➜ realm-js git:(master) ✗ yarn | |
yarn install v1.3.2 | |
[1/5] 🔍 Validating package.json... | |
[2/5] 🔍 Resolving packages... | |
[3/5] 🚚 Fetching packages... | |
[4/5] 🔗 Linking dependencies... | |
[5/5] 📃 Building fresh packages... | |
$ node-pre-gyp install --fallback-to-build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { | |
StyleSheet, | |
Text, | |
View, | |
} from 'react-native'; | |
class DogModel { | |
public static schema: Realm.ObjectSchema = {name: 'Dog', properties: {name: 'string'} }; | |
public name: string ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"jsx": "react", | |
"target": "es5", | |
"module": "es2015", | |
"types": ["react", "react-native", "jest", "realm"], | |
"lib": ["es2015", "dom"], | |
"moduleResolution": "node", | |
"experimentalDecorators": true, | |
"noEmit": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "AwesomeProjectTS", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "react-native start --transformer node_modules/react-native-typescript-transformer/index.js --skipflow --sourceExts ts,tsx", | |
"test": "jest" | |
}, | |
"dependencies": { | |
"react": "16.2.0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"schema": { | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string", | |
"pattern": "^\\w+\\s\\w+$" | |
}, | |
"username": { | |
"type": "string", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './style'; | |
import react, {Component} from 'react'; | |
import { render } from 'react-dom'; | |
import Framework7 from 'framework7'; | |
import Framework7React, {App as F7App, View, Page} from 'framework7-react'; | |
import Something from './something/something'; | |
Framework7.use(Framework7React); | |
class TestPage extends Component { | |
render() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Function that mutates original webpack config. | |
* Supports asynchronous changes when promise is returned. | |
* | |
* @param {object} config - original webpack config. | |
* @param {object} env - options passed to CLI. | |
* @param {WebpackConfigHelpers} helpers - object with useful helpers when working with config. | |
**/ | |
import AggressiveMergingPlugin from "./node_modules/webpack/lib/optimize/AggressiveMergingPlugin"; | |
import CompressionPlugin from "compression-webpack-plugin"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rules": { | |
"indent": ["error", 2], | |
"linebreak-style": ["error", "unix"] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"hosting": { | |
"public": "www", | |
"ignore": [ | |
"firebase.json", | |
"**/.*", | |
"**/node_modules/**" | |
], | |
"rewrites": [ | |
{ |
OlderNewer