Created
January 16, 2019 21:08
-
-
Save Gguigre/bb56dbffac54d34c2e2d4680048f7536 to your computer and use it in GitHub Desktop.
Sunshine complete ForecastItem component
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
type PropsType = { | |
forecast: ForecastType, | |
index: number | |
}; | |
export class ForecastItem extends Component<PropsType, StateType> { | |
render() { | |
const { forecast, index } = this.props; | |
const image = getImageFromWeatherType(forecast.weatherType); | |
return ( | |
<TransitionView style={styles.container} index={0}> | |
// ... | |
</TransitionView> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment