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
// Gears problem | |
// Connect an input force to a simulated system of gears | |
// | |
// there are two sets of gears in this system, cogs and sprockets | |
// cogs are connected in series and so are sprockets, but the two are not connected (they are parallel) | |
// | |
// **Provide: a function, turnSystem, that accepts joules, a cog, and a sprocket as input, and returns a promise that resolves when both gears stop turning | |
// cog and sprocket simulate the first gear in the two sets | |
// calls should be asynchronous and return promise that resolve when the gears stops turning | |
// |
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 { StyleSheet, Text, View, Image, Animated, Easing, TouchableWithoutFeedback } from 'react-native'; | |
import moment from 'moment'; | |
import Dimensions from 'Dimensions'; | |
var { width, height } = Dimensions.get('window'); | |
export default class App extends React.Component { | |
constructor(props) { | |
super(props); |