Skip to content

Commit

Permalink
Finish iOS verion
Browse files Browse the repository at this point in the history
  • Loading branch information
race604 committed Oct 12, 2015
1 parent f62f662 commit 18b3258
Show file tree
Hide file tree
Showing 44 changed files with 514 additions and 497 deletions.
2 changes: 1 addition & 1 deletion DataRepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ DataRepository.prototype.fetchThemeStories = function(themeId: number, lastID?:
reject(error);
} else {
var topDataRet;
if (values[1] && values[1].editors) {
if (values[1] && values[1].background) {
topDataRet = {};
topDataRet.description = values[1].description;
topDataRet.background = values[1].background;
Expand Down
2 changes: 2 additions & 0 deletions DetailToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var {

var SwitchAndroid = require('SwitchAndroid');
var ToolbarAndroid = require('ToolbarAndroid');
var statusBarSize = Platform.OS == 'ios' ? 10 : 0;

var API_STROY_EXTRA = 'http://news-at.zhihu.com/api/4/story-extra/';

Expand Down Expand Up @@ -139,6 +140,7 @@ var DetailToolbar = React.createClass({
var styles = StyleSheet.create({
actionsContainer: {
height: 56,
paddingTop: statusBarSize,
flexDirection: 'row',
alignItems: 'center',
},
Expand Down
Loading

0 comments on commit 18b3258

Please sign in to comment.