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
https://github.com/facebook/react-native/issues/29279#issuecomment-658244428 |
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
<ProfileContainer> | |
{({ | |
props1, | |
props2 | |
}) => ( | |
<Fragment> | |
<SomekindView | |
props1={props1} | |
props2={props2} | |
/> |
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
// Container | |
const { children } = this.props; | |
const { state1, state2 } = this.state; | |
return ( | |
children && | |
children({ | |
props1: state1, | |
props2: state2 | |
}) |
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
// Container | |
const { state1, state2 } = this.state; | |
return ( | |
<Screen | |
props1={state1} | |
props2={state2} | |
/> | |
) |
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
<Container> | |
<Screen | |
prop1={prop1} | |
prop2={prop2} | |
/> | |
<Container/> |
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 PropTypes from 'prop-types'; | |
const COLORS = [ | |
'#000', | |
'#1dad60', | |
'#1aadf2', | |
'#ad1d1d', | |
'#caea69', | |
'#ea69dd', |
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 { isEqual } from 'lodash'; | |
import { getOrderByHash } from '../../api/providers/iris'; | |
import { | |
SET_ORDER, | |
SET_ORDER_FAIL, | |
HANDLE_CHANGE, | |
SELECTED_SKU_CHANGE, | |
SELECTED_SKU_NOT_ORDERABLE, |
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 { View, Dimensions } from "react-native"; | |
import styles from "./percentBarStyles";\ | |
const PercentBar = ({ percent, margin, children }) => ( | |
<View> | |
{children} | |
<View style={styles.container}> | |
<View | |
style={[styles.powerBar, { width: calculateWidth(percent, margin) }]} |
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
You can run this command to change the npm prefix, which is where npm will put global modules | |
npm config set prefix=$HOME/node | |
Then, edit your .profile or .bashrc file to add this command: | |
export PATH=$HOME/node/bin:$PATH | |
Now, every time you log in or open a terminal, it'll run that command to update the PATH environment variable. | |
If you don't want to re-load that file, you can run export PATH=$HOME/node/bin:$PATH right in your terminal, | |
and it'll do the same thing. |
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
"clear": "watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache" |
NewerOlder