We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7d4598 commit 3be6657Copy full SHA for 3be6657
App/Containers/HomeScreen.js
@@ -24,7 +24,7 @@ class HomeScreen extends React.Component {
24
The weather temperature is: {this.props.temperature}
25
</Text>
26
<Text style={styles.instructions}>{this.props.errorMessage}</Text>
27
- <Button onPress={this.props.fetchTemperature} title="Refresh"/>
+ <Button onPress={this.props.fetchTemperature} title="Refresh" />
28
</View>
29
)
30
}
App/Service/WeatherService.js
@@ -13,8 +13,8 @@ function fetchTemperature() {
13
// Simulate an error 50% of the time just for testing purposes
14
if (Math.random() > 0.5) {
15
return new Promise(function(resolve, reject) {
16
- resolve(null);
17
- });
+ resolve(null)
+ })
18
19
20
const locationQuery = escape(
0 commit comments