Skip to content

Commit

Permalink
more changes to make app live
Browse files Browse the repository at this point in the history
  • Loading branch information
rsperberg committed Nov 21, 2015
1 parent 91a0c8f commit 5b18f89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 10 additions & 4 deletions WeatherProject/WeatherProject.js
Expand Up @@ -43,6 +43,13 @@ var WeatherProject = React.createClass({

},
render() {
var content = null;
if (this.state.forecast !== null) {
content = <Forecast
main={this.state.forecast.main}
description={this.state.forecast.description}
temp={this.state.forecast.temp} />;
}
return (
<View style={styles.container}>
<Image source={require('image!flowers')}
Expand All @@ -60,17 +67,16 @@ var WeatherProject = React.createClass({
onSubmitEditing={this._handleTextChange} />
</View>
</View>
<Forecast
main={this.state.forecast.main}
description={this.state.forecast.description}
temp={this.state.forecast.temp} />
{content}
</View>
</Image>
</View>
);
}
});

var baseFontSize = 16;

var styles = StyleSheet.create({
container: {
flex: 1,
Expand Down
2 changes: 2 additions & 0 deletions WeatherProject/ios/WeatherProject.xcodeproj/project.pbxproj
Expand Up @@ -625,6 +625,7 @@
"$(SRCROOT)/../node_modules/react-native/React/**",
);
INFOPLIST_FILE = WeatherProject/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = org.reactjs.native.example.WeatherProjector;
Expand All @@ -645,6 +646,7 @@
"$(SRCROOT)/../node_modules/react-native/React/**",
);
INFOPLIST_FILE = WeatherProject/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = org.reactjs.native.example.WeatherProjector;
Expand Down

0 comments on commit 5b18f89

Please sign in to comment.