Skip to content

Instantly share code, notes, and snippets.

View kelset's full-sized avatar
🌐
Talk OSS to me

Lorenzo Sciandra kelset

🌐
Talk OSS to me
View GitHub Profile
render() {
const { showsUserLocation, region } = this.state;
const { navigation } = this.props;
if (navigation.firstTabBar && navigation.firstTabBar.index === 3) {
return this.renderFullMap(showsUserLocation, region);
}
return this.renderLightMap(showsUserLocation, region);
}
import PerfMonitor from 'react-native/Libraries/Performance/RCTRenderingPerf';
// ComponentDidMount
PerfMonitor.toggle();
setTimeout(() => {
PerfMonitor.start();
setTimeout(() => {
PerfMonitor.stop();
}, 20000);
}, 5000);
"editor.formatOnSave": true, // THIS WILL TRIGGER PRETTIER ON SAVE
"prettier.eslintIntegration": true // THIS WILL MAKE IT COMMUNICATE WITH ESLINT
@kelset
kelset / cloudSettings
Last active April 10, 2018 08:23
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-07-30T17:52:10.156Z","extensionVersion":"v2.8.2"}
“editor.renderWhitespace”: “boundary”,
“editor.rulers”: [100],
“editor.cursorBlinking”: “solid”`