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
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| */ | |
| import React from 'react'; | |
| import { AppRegistry } from 'react-native'; | |
| import Raven from 'raven-js'; | |
| import ravenPluginReactNative from 'raven-js/plugins/react-native'; | |
| import App from 'myapp/src/App'; |
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
| /* | |
| WallabyJS React Native Config | |
| Works well with Jest + Enzyme | |
| */ | |
| /* eslint-disable */ | |
| module.exports = function (wallaby) { | |
| return { | |
| files: [ | |
| 'src/**/*.js', |
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
| alias docker-switch='function _switch(){eval $(docker-machine env $1);echo "Switched to $1 machine"};_switch' | |
| alias docker-bash='function _bash(){docker-compose run $1 bash };_bash' |
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
| if (window.__REDUX_DEVTOOLS_EXTENSION__) { | |
| const xhr = global.originalXMLHttpRequest ? | |
| global.originalXMLHttpRequest : | |
| global.XMLHttpRequest; | |
| global.XMLHttpRequest = xhr; | |
| } |
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 from 'react'; | |
| import 'react-native'; | |
| import { shallow } from 'enzyme'; | |
| import { shallowToJson } from 'enzyme-to-json'; | |
| import LargeButton from '../LargeButton'; | |
| jest.mock('Materniteam/src/components/FadeIn.js'); | |
| describe('<LargeButton />', () => { |
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
| // @flow | |
| import React, { PureComponent } from 'react'; | |
| import { View, StyleSheet } from 'react-native'; | |
| import { VictoryChart, VictoryArea, VictoryAxis, VictoryScatter } from 'victory-native'; | |
| import { BackendTimestampConverter } from 'homefriend/src/services'; | |
| import appStyle from 'homefriend/src/appStyle'; | |
| type PropsType = { | |
| consumptionHistory: DayConsumptionBackendDataType[], |
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 from 'react'; | |
| import { Image, Text, View } from 'react-native'; | |
| function renderImage(node: any, output: any, state: any, styles: any) { | |
| const { imageWrapper: wrapperStyle, image: imageStyle } = styles; | |
| /** | |
| * Prevent Native crash (View in Text) from occuring | |
| */ | |
| if (state.inline) { |
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
| class LoopbackApp { | |
| private static instance: Promise<any>; | |
| private constructor() {} | |
| public static get app(): Promise<any> { | |
| if (LoopbackApp.instance) return LoopbackApp.instance; | |
| LoopbackApp.instance = new Promise((resolve, reject) => { | |
| resolve(); |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
OlderNewer