Skip to content

Instantly share code, notes, and snippets.

@oriharel
oriharel / amplifyGist.tsx
Created August 24, 2019 08:44
AWS Amplify with MobX in React Native
import { createAppContainer, createSwitchNavigator } from 'react-navigation';
import UserNotAuthorized from './src/screens/UserNotAuthorized/UserNotAuthorized';
import DisclaimerScreen from './src/screens/DisclaimerScreen/DisclaimerScreen';
import React from 'react';
import { withAuthenticator } from 'aws-amplify-react-native';
import { Auth } from 'aws-amplify';
import { action, observable, reaction } from 'mobx';
import { Props, State } from './src/boot/setup';
import { Provider } from 'mobx-react/native';
@oriharel
oriharel / Batman.js
Created November 6, 2018 14:29
Batman animation in React Native - SVG Path element animation
import React, { Component } from 'react';
import Svg, {Path} from 'react-native-svg';
import {
Animated,
View,
} from 'react-native';
const AnimatedPath = Animated.createAnimatedComponent(Path);