Commit 0a52ca6d by Denglingling

调整【录音】样式;首页顶部【退出】图标的显示

parent 62e093f2
...@@ -113,6 +113,7 @@ export const list_common_item = { ...@@ -113,6 +113,7 @@ export const list_common_item = {
height: 90 height: 90
}, },
reco_btn_cont: { reco_btn_cont: {
flex: 1,
paddingVertical: 20 paddingVertical: 20
}, },
reco_btn_tit: { reco_btn_tit: {
...@@ -122,8 +123,6 @@ export const list_common_item = { ...@@ -122,8 +123,6 @@ export const list_common_item = {
}, },
reco_btn_inner: { reco_btn_inner: {
flex: 1, flex: 1,
width: Width() - 38,
// justifyContent: 'flex-end',
alignItems: 'center', alignItems: 'center',
paddingTop: 30 paddingTop: 30
}, },
......
...@@ -22,18 +22,7 @@ import { show } from '../../utils/Utils'; ...@@ -22,18 +22,7 @@ import { show } from '../../utils/Utils';
class HeadBackItem extends Component { class HeadBackItem extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = { }
isRightExit: false
}
}
componentWillReceiveProps(nextProps) {
let { isRightExit } = this.state
if(isRightExit != nextProps.nextProps) {
this.setState({
isRightExit: nextProps.nextProps
})
}
} }
goBack() { goBack() {
...@@ -58,8 +47,7 @@ class HeadBackItem extends Component { ...@@ -58,8 +47,7 @@ class HeadBackItem extends Component {
} }
render() { render() {
let { title } = this.props let { title, isRightExit } = this.props
let { isRightExit } = this.state
return ( return (
<View style={styles.header_style}> <View style={styles.header_style}>
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment