Skip to content

Instantly share code, notes, and snippets.

@xotahal
Created June 21, 2018 04:47
Show Gist options
  • Save xotahal/6df4809cfbd6ffd8a5d7ae6773656c00 to your computer and use it in GitHub Desktop.
Save xotahal/6df4809cfbd6ffd8a5d7ae6773656c00 to your computer and use it in GitHub Desktop.
<View style={styles.container}>
<TranslateY
style={[styles.graphContainer]}
value={graphLayerY}
delay={delay}
>
// Positive column
<TranslateY
style={styles.positiveColumn}
value={positiveY}
delay={delay}
/>
// Baseline
// ...
//
// Negative column
<TranslateY
style={styles.negativeColumn}
value={negativeY}
delay={delay}
/>
</TranslateY>
<TranslateY
style={styles.valueLayer}
value={valueLayerY}
delay={delay + valueDelay}
>
{this.renderValue()}
</TranslateY>
</View>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment