This file contains hidden or 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
| // Create a function that accepts another function as an argument | |
| const callbackAcceptingFunction = (fn) => { | |
| // Calls the function with any required arguments | |
| return fn(1, 2, 3) | |
| } | |
| // Callback gets arguments from the above call | |
| const callback = (arg1, arg2, arg3) => { | |
| return arg1 + arg2 + arg3 | |
| } |
This file contains hidden or 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, { Component } from 'react'; | |
| import { StyleSheet, Text, View, Slider } from 'react-native'; | |
| class SlideText extends React.Component { | |
| constructor(props){ | |
| super(props); | |
| this.state = { | |
| value: this.props.value, | |
| min: this.props.min, |
This file contains hidden or 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, { Component } from 'react'; | |
| import { | |
| StyleSheet, | |
| Text, | |
| View, | |
| ListView, | |
| ScrollView | |
| } from 'react-native'; | |
| import Swipeout from 'react-native-swipeout'; |
This file contains hidden or 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
| function towerBuilder(nFloors) { | |
| let space = "", star = "", result = []; | |
| for (let i = 1; i <= nFloors; i++) { | |
| space = (" ").repeat(nFloors - i); | |
| star = ("*").repeat((2 * i) - 1); | |
| result.push(space + star + space); | |
| } | |
| return result; | |
| } |
This file contains hidden or 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, { Component } from 'react'; | |
| import { | |
| StyleSheet, | |
| Text, | |
| View, | |
| Animated, | |
| Easing, | |
| Image, | |
| } from 'react-native'; |
This file contains hidden or 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, { Component } from 'react'; | |
| import { | |
| StyleSheet, | |
| Text, | |
| View, | |
| Dimensions, | |
| Animated, | |
| Easing, | |
| } from 'react-native'; |
This file contains hidden or 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
| 1. A description of React's new core algorithm, React Fiber | |
| React Fiber is an ongoing reimplementation of React's core algorithm. It is the culmination of over two years of research by the React team. | |
| The goal of React Fiber is to increase its suitability for areas like animation, layout, and gestures. Its headline feature is incremental rendering: the ability to split rendering work into chunks and spread it out over multiple frames. | |
| Other key features include the ability to pause, abort, or reuse work as new updates come in; the ability to assign priority to different types of updates; and new concurrency primitives. | |
| Lear more: https://github.com/acdlite/react-fiber-architecture | |
| 2. You can view its Timeline here: http://isfiberreadyyet.com |