Commit f780963d authored by Trisno's avatar Trisno

update url topup info dan build 113

parent 38e7df66
{ {
"expo": { "expo": {
"extra" : { "extra" : {
"buildNumber" : "109", "buildNumber" : "113",
"remarks": "" "remarks": ""
}, },
......
...@@ -333,7 +333,7 @@ class MenuSelection extends React.Component { ...@@ -333,7 +333,7 @@ class MenuSelection extends React.Component {
)} )}
keyExtractor={item => item.id} keyExtractor={item => item.id}
ref={(ref) => { this.flatListRef = ref; }} ref={(ref) => { this.flatListRef = ref; }}
initialNumToRender={5} // initialNumToRender={5}
maxToRenderPerBatch={10} maxToRenderPerBatch={10}
windowSize={10} windowSize={10}
/> />
......
...@@ -20,15 +20,19 @@ import { connect } from 'react-redux'; ...@@ -20,15 +20,19 @@ import { connect } from 'react-redux';
componentDidMount() { componentDidMount() {
console.log("ii" + this.props.BASE_URL) console.log("ii" + this.props.BASE_URL)
console.log(this.props.BASE_URL+'cms/v2/topup-info/'+this.props.session_id)
const statusBarHeight = getStatusBarHeight(); const statusBarHeight = getStatusBarHeight();
this.setState({ this.setState({
statusbar_height: statusBarHeight statusbar_height: statusBarHeight
}) })
Axios.get(this.props.BASE_URL+'cms/v2/list/topup-info').then(res => { Axios.get(this.props.BASE_URL+'cms/v2/topup_info/'+this.props.session_id).then(res => {
let data = res.data; let data = res.data;
this.setState({ this.setState({
topup_info: data.contents topup_info: data.contents
}) })
}).catch(error => {
let response = error.response.data;
console.log(response.msg);
}) })
} }
......
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 to comment