Skip to content

Instantly share code, notes, and snippets.

View yleflour's full-sized avatar

Yann Leflour yleflour

View GitHub Profile
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 />', () => {
@yleflour
yleflour / App.js
Created January 2, 2017 15:49
React Native Debugger - Network Traffic
if (window.__REDUX_DEVTOOLS_EXTENSION__) {
const xhr = global.originalXMLHttpRequest ?
global.originalXMLHttpRequest :
global.XMLHttpRequest;
global.XMLHttpRequest = xhr;
}
@yleflour
yleflour / .szhrc
Created July 12, 2016 09:00
Docker aliases
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'
@yleflour
yleflour / registerApp.js
Created June 23, 2016 16:22
[React native] Sentry config
/**
* 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';