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 from "react"; | |
| import axios from "axios"; | |
| const sitemapXml = data => { | |
| let latestPost = 0; | |
| let projectsXML = ""; | |
| data.map(post => { | |
| const postDate = Date.parse(post.modified); | |
| if (!latestPost || postDate > latestPost) { |
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
| root=/path/to/root | |
| project=/path/to/project |
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, {PropTypes, PureComponent} from 'react'; | |
| import {TextInput} from 'react-native'; | |
| import debounce from 'debounce'; | |
| /** | |
| * This is a workaround for the buggy react-native TextInput multiline on Android. | |
| * | |
| * Can be removed once https://github.com/facebook/react-native/issues/12717 | |
| * is fixed. | |
| * |
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 TextField from 'components/base/TextField'; | |
| const WAIT_INTERVAL = 1000; | |
| const ENTER_KEY = 13; | |
| export default class TextSearch extends Component { | |
| constructor(props) { | |
| super(); |
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
| //This is a Redacted version to be used as a benchmark/example for React Native Router Flux | |
| import React, { | |
| Component, | |
| StatusBar, | |
| Text, | |
| View, | |
| StyleSheet, | |
| PixelRatio, | |
| } 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
| const DOUBLE_PRESS_DELAY = 300; | |
| // ... | |
| /** | |
| * Double Press recognition | |
| * @param {Event} e | |
| */ | |
| handleImagePress(e) { | |
| const now = new Date().getTime(); |
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
| var Index = React.createClass({ | |
| getInitialState: function () { | |
| return { | |
| lastPress: 0 | |
| } | |
| }, | |
| onPress: function () { | |
| var delta = new Date().getTime() - this.state.lastPress; |