Commit f780963d authored by Trisno's avatar Trisno

update url topup info dan build 113

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