Skip to content

Instantly share code, notes, and snippets.

@drmas
drmas / presentation.ts
Created March 30, 2020 19:03
EgyptJS Advanced Typescript Types
const Title = "Advanced Typescript Types";
const WhoAmI = {
name: `Mohamed Shaban`,
github: `github.com/drmas`,
job: "Software Engineer",
company: `Urban Sports Club - Berlin`
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
import React from 'react';
import {
View,
Text,
TouchableOpacity,
StyleSheet,
ActivityIndicator,
Image,
ListView
} from 'react-native'
@drmas
drmas / home.js
Last active April 22, 2017 10:30
import React from 'react';
import {
View,
Text,
StyleSheet,
ListView,
TouchableOpacity,
ActivityIndicator
} from 'react-native';
import { Entypo } from '@expo/vector-icons';
@drmas
drmas / app.js
Last active April 22, 2017 10:29
import React from 'react'
import {
View,
StatusBar,
Platform
} from 'react-native'
import {Scene, Router} from 'react-native-router-flux';
import HomeScreen from './screens/home'
@drmas
drmas / navReducer.js
Last active June 21, 2016 09:58 — forked from dabit3/navReducer.js
React Native Navigator Experimental Part 2 — Implementing Redux navReducer.js
import { PUSH_ROUTE, POP_ROUTE } from '../constants/ActionTypes'
import { NavigationExperimental } from 'react-native'
const {
StateUtils: NavigationStateUtils
} = NavigationExperimental
const initialState = {
index: 0,
key: 'root',
routes: [{
@drmas
drmas / app.tss
Last active August 13, 2016 17:28 — forked from tonylukasavage/app.tss
'Label[platform=android]': {
color: '#000' // all platforms except Android default to black
}
'Window': {
backgroundColor: '#fff' // white background instead of default transparent
}
'Window[platform=android]': {
modal: false // make android windows all heavyweight