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
struct TextInput { | |
let value = BehaviourRelay<String>() | |
let didChange = PublishRelay<String>() | |
} | |
let input1 = TextInput() | |
let input2 = TextInput() | |
let input3 = TextInput() | |
let value1 = BehaviourRelay<String>() |
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
window.__state__ = {}; | |
function createStore(key) { | |
if (window.__state__[key]) { | |
return window.__state__[key] | |
} | |
window.__state__[key] = {}; | |
return window.__state__[key]; | |
} |
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
// code 0 | |
InteractionManager.runAfterInteractions(() => { /* some operations */ }) | |
// code 1 | |
// In some where | |
this.props.navigationAction.gotoSellPage() | |
// navigationAction.js | |
function gotoSellPage() { | |
return { |
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 { | |
TouchableWithoutFeedback, | |
} from 'react-native'; | |
const DOUBLE_TAP_THRESOLD = 300; | |
export default function reactNativeDoubleTap(Component) { | |
return class extends React.Component { |