diff --git a/README.md b/README.md
index ec9268e..4bc5682 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ Psnine第三方安卓客户端, 基于React Native, 支持安卓5.0及以上系
- 支持登录、签到、用户中心、用户游戏、留言板和用户圈子
- 支持奖杯列表、奖杯TIP和奖杯评分
- 支持用户收藏、发布、圈子、图床、图片上传、明细、个性化和修改密码
-- 支持主题的切换, 包括首页布局和19种主题颜色, 以及对应的强调色和夜间主题
+- 支持主题的切换, 可以切换首页布局和19种主题颜色, 以及对应的强调色和夜间主题
# Download
> [https://fir.im/mf24](https://fir.im/mf24)
diff --git a/package.json b/package.json
index de1d321..1293c27 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "psnine",
- "version": "0.5.0",
+ "version": "0.6.0",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
diff --git a/psnine/container/new/NewBattle.js b/psnine/container/new/NewBattle.js
index ca42871..3c0f442 100644
--- a/psnine/container/new/NewBattle.js
+++ b/psnine/container/new/NewBattle.js
@@ -384,7 +384,6 @@ export default class NewTopic extends Component {
onSelectionChange={this.onSelectionChange}
blurOnSubmit={true}
numberOfLines={100}
- selection={this.state.selection}
ref={ref => this.content = ref}
onChange={({ nativeEvent }) => { this.setState({ content: nativeEvent.text }) }}
value={this.state.content}
diff --git a/psnine/container/new/NewGene.js b/psnine/container/new/NewGene.js
index db0bead..d0c7456 100644
--- a/psnine/container/new/NewGene.js
+++ b/psnine/container/new/NewGene.js
@@ -281,8 +281,7 @@ export default class NewTopic extends Component {
keyboardType="default"
returnKeyType='go'
returnKeyLabel='go'
- onSelectionChange={this.onSelectionChange}
- selection={this.state.selection}
+ onSelectionChange={this.onSelectionChange}
blurOnSubmit={true}
numberOfLines={100}
ref={ref => this.content = ref}
diff --git a/psnine/container/new/NewQa.js b/psnine/container/new/NewQa.js
index ffd6473..f6e6066 100644
--- a/psnine/container/new/NewQa.js
+++ b/psnine/container/new/NewQa.js
@@ -380,7 +380,6 @@ export default class NewTopic extends Component {
returnKeyType='go'
returnKeyLabel='go'
onSelectionChange={this.onSelectionChange}
- selection={this.state.selection}
blurOnSubmit={true}
numberOfLines={100}
ref={ref => this.content = ref}
diff --git a/psnine/container/new/NewTopic.js b/psnine/container/new/NewTopic.js
index 673733b..3be162c 100644
--- a/psnine/container/new/NewTopic.js
+++ b/psnine/container/new/NewTopic.js
@@ -306,7 +306,6 @@ export default class NewTopic extends Component {
returnKeyType='go'
returnKeyLabel='go'
onSelectionChange={this.onSelectionChange}
- selection={this.state.selection}
blurOnSubmit={true}
numberOfLines={100}
ref={ref => this.content = ref}
diff --git a/psnine/container/new/Reply.js b/psnine/container/new/Reply.js
index 42f3a0a..0d1e0f9 100644
--- a/psnine/container/new/Reply.js
+++ b/psnine/container/new/Reply.js
@@ -422,7 +422,6 @@ export default class Reply extends Component {
returnKeyType='go'
returnKeyLabel='go'
onSelectionChange={this.onSelectionChange}
- selection={this.state.selection}
blurOnSubmit={true}
numberOfLines={100}
ref={ref => this.content = ref}
diff --git a/psnine/container/shared/ImageUploadItem.js b/psnine/container/shared/ImageUploadItem.js
index b2809cc..76f0e87 100644
--- a/psnine/container/shared/ImageUploadItem.js
+++ b/psnine/container/shared/ImageUploadItem.js
@@ -60,8 +60,8 @@ export default class PhotoItem extends React.PureComponent {
alignSelf: 'flex-start',
alignContent: 'flex-end',
backgroundColor: modeInfo.backgroundColor,
- width: ITEM_HEIGHT,
- height: ITEM_HEIGHT,
+ width: SCREEN_WIDTH / 2,
+ height: SCREEN_WIDTH / 2,
}}>
diff --git a/psnine/container/shared/MessageItem.js b/psnine/container/shared/MessageItem.js
index be1b7de..2e069f6 100644
--- a/psnine/container/shared/MessageItem.js
+++ b/psnine/container/shared/MessageItem.js
@@ -68,10 +68,10 @@ export default class ComplexComment extends React.PureComponent {
background={TouchableNativeFeedback.SelectableBackgroundBorderless()}
>
-
+ { rowData.avatar && || undefined }
{
this.state.modalVisible && modalList.length && (
)
}
+ renderTheme = ({ item: rowData, index}) => {
+ const { modeInfo } = this.props.screenProps
+ const { ITEM_HEIGHT } = this
+ const { navigation } = this.props
+ // console.log(index, rowData)
+ const topicopen = this.state.data.form.topicopen
+ return (
+
+
+ )
+ }
renderBG = ({ item: rowData, index}) => {
const { modeInfo } = this.props.screenProps
@@ -233,7 +259,7 @@ export default class Custom extends Component {
let keys = Object.keys(data);
- const sections = data.sections ? data.sections.map((item, index) => ({
+ let sections = data.sections ? data.sections.map((item, index) => ({
key: item,
modeInfo,
data: (() => {
@@ -256,16 +282,26 @@ export default class Custom extends Component {
text: '自定义头像'
}
]]
+ } else if (index === 3) {
+ return [[
+ {
+ text: '显示主题'
+ }
+ ]]
}
})(),
renderItem: [
this.renderBG,
this.renderShow,
+ this.renderTheme,
this.renderVIP
][index]
})) : []
- if (!this.state.data.isVIP) {
- sections.length = 1
+ if (!this.state.data.isVIP && data.sections) {
+ sections = [
+ sections[0],
+ sections[2]
+ ]
}
let NUM_SECTIONS = sections.length
diff --git a/psnine/container/user/ImageUpload.js b/psnine/container/user/ImageUpload.js
index 2304e05..5fadfb9 100644
--- a/psnine/container/user/ImageUpload.js
+++ b/psnine/container/user/ImageUpload.js
@@ -237,7 +237,7 @@ export default class Photo extends Component {
onEndReachedThreshold={0.5}
extraData={modeInfo}
windowSize={21}
- numColumns={3}
+ numColumns={2}
columnWrapperStyle={{
flex:1
}}
diff --git a/psnine/container/user/UserDiary.js b/psnine/container/user/UserDiary.js
index c69bcdf..dd623e9 100644
--- a/psnine/container/user/UserDiary.js
+++ b/psnine/container/user/UserDiary.js
@@ -72,7 +72,10 @@ class UserBoard extends Component {
}
})
if (!params.URL) {
- params = { ...screenProps.toolbar[2] }
+ params = {
+ text: '日志',
+ URL: screenProps.toolbar[0].url + '/diary'
+ }
}
this.URL = params.URL
this.preFetch();
diff --git a/psnine/container/user/UserTopic.js b/psnine/container/user/UserTopic.js
index 477d8c7..ee61c41 100644
--- a/psnine/container/user/UserTopic.js
+++ b/psnine/container/user/UserTopic.js
@@ -65,7 +65,10 @@ class UserGame extends Component {
}
})
if (!params.URL) {
- params = { ...screenProps.toolbar[4] }
+ params = {
+ text: '主题',
+ URL: screenProps.toolbar[0].url
+ }
}
this.URL = params.URL.includes('?page') ? params.URL : `${params.URL}?page=1`
this.fetchMessages(params.URL, 'jump');
@@ -118,7 +121,7 @@ class UserGame extends Component {
}
componentDidFocus()
});
- })
+ }).catch(err => {})
})
})
}