Skip to content

Instantly share code, notes, and snippets.

View abumostafa's full-sized avatar

Ahmed Abumostafa abumostafa

  • Germany
View GitHub Profile
@abumostafa
abumostafa / .eslint
Created February 5, 2019 10:42
React Eslint
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
import React, { Component } from 'react';
import { AppRegistry, View, Text, Button, StyleSheet } from 'react-native';
import { Router, Scene, Actions } from 'react-native-router-flux';
const HomeComponent = (props) => (
<View style={styles.container}>
<Text style={styles.welcome}>
Home View
</Text>
<Button title="Tab 1" onPress={ Actions.tabbar }/>