git remote add <remote-name> <remote-url>
git fetch <remote-name> --tags
git subtree add --prefix <subdirectory> <remote-name> <sha>
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, TouchableOpacity } from 'react-native'; | |
Text.defaultProps = { | |
...Text.defaultProps, | |
allowFontScaling: false, | |
}; | |
// In other news, we do this as well because 0.6 is too weird | |
TouchableOpacity.defaultProps = { | |
...TouchableOpacity.defaultProps, |
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
const styles = StyleSheet.create({ | |
container: { | |
borderRadius: scale(4), | |
borderWidth: scale(0.5), | |
borderColor: '#d6d7da', | |
paddingHorizontal: scale(16), | |
}, | |
title: { | |
fontSize: scale(19), | |
fontWeight: 'bold', |
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
const { width, height } = Dimensions.get('window'); | |
const heightAspect = 568; | |
const widthAspect= 320; | |
const verticalScale = height / heightAspect; | |
const horizontalScale = width / widthAspect; | |
export const scale = (size) => (verticalScale / horizontalScale) * size; | |
export const scalePx = (sizePx) => { |
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
Verifying my Blockstack ID is secured with the address 1NLfpGW1B4BkpnE1uFS6ED75pxH19n3dgH https://explorer.blockstack.org/address/1NLfpGW1B4BkpnE1uFS6ED75pxH19n3dgH |
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
// Consider a situation where you pass data, a state, and your navigation as props to your child component. | |
const MyComponent = ({ loadingImages, data, navigation }) => { | |
const loadNextPage = () => { | |
navigation.navigate('NextPage'); | |
} | |
return ( | |
<View> |