This file contains 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 { Client, Configuration } from 'bugsnag-react-native'; | |
module.exports = { // cached singleton instance | |
instance: null, | |
create(key, store, codeBundleId) { | |
if (this.instance === null) { | |
if (key == null) { |
This file contains 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
// https://github.com/alfonsomunozpomer/react-fetch-mock | |
import React from 'react' | |
import fetchMock from 'fetch-mock' | |
import Enzyme from 'enzyme' | |
import {shallow, mount, render} from 'enzyme' | |
import Adapter from 'enzyme-adapter-react-16' | |
Enzyme.configure({ adapter: new Adapter() }) |
This file contains 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 {InteractionManager, ActivityIndicator} from 'react-native'; | |
import {View} from 'glamorous-native'; | |
const DefaultLoader = ( | |
<View padding={20} alignItems="center" justifyContent="center"> | |
<ActivityIndicator size="large"/> | |
</View> | |
); |
This file contains 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
#debugging shellscripts -x would show the scrips line by line and output followed by | |
#!/bin/bash -x | |
TEST_VAR="test" | |
echo "$TEST_VAR" | |
#custom | |
#set -x / start debugginh | |
#set +x / stop | |
#-ex exit on stop | |
#-v prints shell before substitution are applied | |
#-vx |
OlderNewer