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 PropTypes from 'prop-types'; | |
import { | |
View, | |
StyleSheet | |
} from 'react-native'; | |
const styles = StyleSheet.create({ | |
}); |
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
/** | |
* TODO Finish this for optimized Android swiping | |
* Inspired by react-native-swiper but based on cross-platform and optimized FlatList | |
*/ | |
import React, {Component} from 'react'; | |
import PropTypes from 'prop-types'; | |
import { | |
StyleSheet, | |
FlatList, |
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
/** | |
* Wrapper for creating Global (RootContainer) PanResponder | |
* Responder events are bubbled up by the View hierarchy, but sometimes it's needed to "move" | |
* touch handling to a sibling component. Instead we're creating Root Responder to capture the touch and | |
* delegate the callbacks to any component that wants to listen to it. | |
* | |
* Any component in the App can hook into the Root Responder lifecycle callbacks | |
* For capturing of the Root Responder the *Capture callbacks should return true | |
* | |
* Only one component at a time can be attached to Root Responder |
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
<Focusable> | |
<Component /> | |
</Focusable> |
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 FocusableComponent = withFocusable()(Component); |
OlderNewer