Skip to content

Instantly share code, notes, and snippets.

@methodbox
Created July 24, 2019 01:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save methodbox/06f65ce53eeb0a76620bdf24501f16a0 to your computer and use it in GitHub Desktop.
Get Started with TypeScript - Part 2 - _getNewMission complete
_getNewMission() {
this.setState({
// Use this to change the state values when the button is clicked.
appTitle: 'SpaceX Launches',
launchImg: require('./assets/2013_-_9_falcon_9_ses_launch-4.jpg'),
rocketName: '',
missionName: '',
missionLogo: require('./assets/mission-logo.png'),
missionDetails: '',
missionSuccess: false,
flightNumber: 0,
missionId: '',
launchDate: '',
payloadSize: 0,
ships: [],
isShowingMissionData: true,
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment