src/
index.js # Renders an <App /> component.
reducers.index.js # Exports a root Redux reducer (or MobX store).
components/
MyComponent/
component.js # Exports MyComponent.
component.test.js # Contains tests.
actions.js # Exports Redux "action type" strings and "action creator" functions.
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
> JestBrokenPromises@0.0.1 test /Users/klap-hotel/Dev/JestBrokenPromises | |
> jest "--debug" | |
jest version = 15.1.1 | |
test framework = jasmine2 | |
config = { | |
"haste": { | |
"defaultPlatform": "ios", | |
"platforms": [ | |
"android", |
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 { Text, View, ListView } from 'react-native'; | |
+import { Text, View } from 'react-native'; | |
+import { ImmutableListView } from 'react-native-immutable-list-view'; | |
import style from './styles'; | |
import listData from './listData'; | |
class App extends Component { | |
- constructor(props) { |
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 { Text, View, ListView } from 'react-native'; | |
+import { Text, View, FlatList } from 'react-native'; | |
import style from './styles'; | |
import listData from './listData'; | |
class App extends Component { | |
- constructor(props) { | |
- super(props); |
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 { Text, View } from 'react-native'; | |
-import { ImmutableListView } from 'react-native-immutable-list-view'; | |
+import { ImmutableVirtualizedList } from 'react-native-immutable-list-view'; | |
import style from './styles'; | |
import listData from './listData'; | |
class App extends Component { | |
- renderRow(rowData) { |
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
mkdir -p node_modules/react-native/Libraries/Lists/ && \ | |
for file in 'FlatList' 'MetroListView' 'SectionList' 'VirtualizedList' 'VirtualizedSectionList' 'ViewabilityHelper' 'VirtualizeUtils'; \ | |
do curl https://raw.githubusercontent.com/facebook/react-native/master/Libraries/Lists/${file}.js > node_modules/react-native/Libraries/Lists/${file}.js; \ | |
done |
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
/** | |
* Root sagas can be exported from every file, and are all bundled together in one master saga. | |
* This saga listens for requests to sync, as well as failure events. | |
*/ | |
export default function* rootSaga() { | |
yield fork(takeLatest, cacheManagerActionTypes.SYNC_ALL, startSync); | |
yield fork(takeLatest, cacheManagerActionTypes.SYNC_FAILED, showSyncFailed); | |
} | |
/** |
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 emojiRegexCreator from 'emoji-regex'; | |
const emojiRegex = emojiRegexCreator(); | |
export default { | |
isPureEmojiString(text) { | |
if (!text || !text.trim()) return false; | |
return text.replace(emojiRegex, '').trim() === ''; |
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
<!doctype html5> | |
<html> | |
<head> | |
<style type="text/css"> | |
strong { font-weight: bold; } | |
hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } | |
html { font-family: sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; } body { margin: 0; } | |
a { background-color: transparent; } | |
a:active, a:hover { outline: 0; } |
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
# One-time setup | |
git config --global --add remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" | |
git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" # This is the important one | |
# Make sure there aren't duplicate configs | |
git config --global --list | |
# Checkout someone else's PR! | |
git fetch origin | |
git checkout pr/20 |
OlderNewer