Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Giang Tran
InvestCustomer
Commits
bc25cc28
Commit
bc25cc28
authored
Apr 09, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix keyboard
parent
d66cf65b
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
80 additions
and
18 deletions
+80
-18
BankInfor.js
src/Screens/AccountVerification/Tab/BankInfor.js
+4
-0
GeneralInfor.js
src/Screens/AccountVerification/Tab/GeneralInfor.js
+8
-1
Profile.js
src/Screens/AccountVerification/Tab/Profile.js
+2
-0
GeneralView.js
src/Screens/AccountVerification/TabView/GeneralView.js
+4
-0
ProfileView.js
src/Screens/AccountVerification/TabView/ProfileView.js
+4
-0
Authen.js
src/Screens/Authen/Authen.js
+4
-0
FeedbackView.js
src/Screens/Feedback/FeedbackView.js
+8
-1
GeneralInfor.js
src/Screens/Menu/Profile/Tab/GeneralInfor.js
+4
-0
AddMethod.js
src/Screens/MethodPay/AddMethod.js
+19
-4
MethodPay.js
src/Screens/MethodPay/MethodPay.js
+14
-8
MethodPayDetail.js
src/Screens/MethodPay/MethodPayDetail.js
+0
-1
MethodPayView.js
src/Screens/MethodPay/MethodPayView.js
+6
-2
BankInfor.js
src/components/BankInfor.js
+3
-1
No files found.
src/Screens/AccountVerification/Tab/BankInfor.js
View file @
bc25cc28
...
@@ -10,6 +10,8 @@ import {
...
@@ -10,6 +10,8 @@ import {
Platform
,
Platform
,
Dimensions
,
Dimensions
,
Alert
,
Alert
,
TouchableWithoutFeedback
,
Keyboard
,
}
from
'react-native'
;
}
from
'react-native'
;
import
TextField
from
'../../../components/Input/TextField'
;
import
TextField
from
'../../../components/Input/TextField'
;
import
TextMulti
from
'../../../components/Input/TextMulti'
;
import
TextMulti
from
'../../../components/Input/TextMulti'
;
...
@@ -120,6 +122,7 @@ const BankInfor = (props) => {
...
@@ -120,6 +122,7 @@ const BankInfor = (props) => {
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
style
=
{{
flex
:
1
}}
style
=
{{
flex
:
1
}}
keyboardVerticalOffset
=
{
-
50
}
>
keyboardVerticalOffset
=
{
-
50
}
>
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
>
<
View
<
View
style
=
{{
style
=
{{
...
@@ -157,6 +160,7 @@ const BankInfor = (props) => {
...
@@ -157,6 +160,7 @@ const BankInfor = (props) => {
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/ScrollView
>
<
/ScrollView
>
<
/TouchableWithoutFeedback
>
<
/KeyboardAvoidingView
>
<
/KeyboardAvoidingView
>
);
);
};
};
...
...
src/Screens/AccountVerification/Tab/GeneralInfor.js
View file @
bc25cc28
...
@@ -9,6 +9,8 @@ import {
...
@@ -9,6 +9,8 @@ import {
KeyboardAvoidingView
,
KeyboardAvoidingView
,
ScrollView
,
ScrollView
,
Platform
,
Platform
,
TouchableWithoutFeedback
,
Keyboard
,
}
from
'react-native'
;
}
from
'react-native'
;
import
R
from
'../../../assets/R'
;
import
R
from
'../../../assets/R'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
...
@@ -47,6 +49,7 @@ const GeneralInfor = (props) => {
...
@@ -47,6 +49,7 @@ const GeneralInfor = (props) => {
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
style
=
{{
flex
:
1
}}
style
=
{{
flex
:
1
}}
keyboardVerticalOffset
=
{
-
50
}
>
keyboardVerticalOffset
=
{
-
50
}
>
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
>
<
View
style
=
{{
flex
:
1
,
paddingHorizontal
:
10
,
paddingTop
:
10
}}
>
<
View
style
=
{{
flex
:
1
,
paddingHorizontal
:
10
,
paddingTop
:
10
}}
>
<
View
style
=
{{
flexDirection
:
'row'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
}}
>
...
@@ -77,7 +80,10 @@ const GeneralInfor = (props) => {
...
@@ -77,7 +80,10 @@ const GeneralInfor = (props) => {
title
=
{
'Ngày sinh'
}
title
=
{
'Ngày sinh'
}
/
>
/
>
<
TextMulti
title
=
{
'Địa chỉ'
}
onChangeText
=
{(
val
)
=>
setAdress
(
val
)}
/
>
<
TextMulti
title
=
{
'Địa chỉ'
}
onChangeText
=
{(
val
)
=>
setAdress
(
val
)}
/
>
<
TouchableOpacity
onPress
=
{
onNextPress
}
style
=
{
styles
.
btnNext
}
>
<
TouchableOpacity
onPress
=
{
onNextPress
}
style
=
{
styles
.
btnNext
}
>
<
Image
<
Image
style
=
{{
width
:
30
,
height
:
30
}}
style
=
{{
width
:
30
,
height
:
30
}}
...
@@ -87,6 +93,7 @@ const GeneralInfor = (props) => {
...
@@ -87,6 +93,7 @@ const GeneralInfor = (props) => {
<
View
style
=
{{
height
:
100
}}
/
>
<
View
style
=
{{
height
:
100
}}
/
>
<
/View
>
<
/View
>
<
/ScrollView
>
<
/ScrollView
>
<
/TouchableWithoutFeedback
>
<
/KeyboardAvoidingView
>
<
/KeyboardAvoidingView
>
);
);
};
};
...
...
src/Screens/AccountVerification/Tab/Profile.js
View file @
bc25cc28
...
@@ -153,6 +153,7 @@ const Profile = (props) => {
...
@@ -153,6 +153,7 @@ const Profile = (props) => {
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
style
=
{{
flex
:
1
}}
style
=
{{
flex
:
1
}}
keyboardVerticalOffset
=
{
-
50
}
>
keyboardVerticalOffset
=
{
-
50
}
>
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
>
<
ScrollView
style
=
{{
flex
:
1
}}
showsVerticalScrollIndicator
=
{
false
}
>
<
ScrollView
style
=
{{
flex
:
1
}}
showsVerticalScrollIndicator
=
{
false
}
>
<
View
<
View
style
=
{{
style
=
{{
...
@@ -210,6 +211,7 @@ const Profile = (props) => {
...
@@ -210,6 +211,7 @@ const Profile = (props) => {
<
View
style
=
{
styles
.
btnSend
}
>
<
View
style
=
{
styles
.
btnSend
}
>
<
Button
title
=
{
'Xác minh'
}
onClick
=
{
onPress
}
/
>
<
Button
title
=
{
'Xác minh'
}
onClick
=
{
onPress
}
/
>
<
/View
>
<
/View
>
<
/TouchableWithoutFeedback
>
<
/KeyboardAvoidingView
>
<
/KeyboardAvoidingView
>
);
);
};
};
...
...
src/Screens/AccountVerification/TabView/GeneralView.js
View file @
bc25cc28
...
@@ -9,6 +9,8 @@ import {
...
@@ -9,6 +9,8 @@ import {
KeyboardAvoidingView
,
KeyboardAvoidingView
,
ScrollView
,
ScrollView
,
Platform
,
Platform
,
TouchableWithoutFeedback
,
Keyboard
,
}
from
'react-native'
;
}
from
'react-native'
;
import
R
from
'../../../assets/R'
;
import
R
from
'../../../assets/R'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
...
@@ -33,6 +35,7 @@ const GeneralInfor = (props) => {
...
@@ -33,6 +35,7 @@ const GeneralInfor = (props) => {
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
style
=
{{
flex
:
1
}}
style
=
{{
flex
:
1
}}
keyboardVerticalOffset
=
{
-
50
}
>
keyboardVerticalOffset
=
{
-
50
}
>
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
>
<
View
style
=
{{
flex
:
1
,
paddingHorizontal
:
10
,
paddingTop
:
10
}}
>
<
View
style
=
{{
flex
:
1
,
paddingHorizontal
:
10
,
paddingTop
:
10
}}
>
<
View
<
View
...
@@ -91,6 +94,7 @@ const GeneralInfor = (props) => {
...
@@ -91,6 +94,7 @@ const GeneralInfor = (props) => {
<
View
style
=
{{
height
:
100
}}
/
>
<
View
style
=
{{
height
:
100
}}
/
>
<
/View
>
<
/View
>
<
/ScrollView
>
<
/ScrollView
>
<
/TouchableWithoutFeedback
>
<
/KeyboardAvoidingView
>
<
/KeyboardAvoidingView
>
);
);
};
};
...
...
src/Screens/AccountVerification/TabView/ProfileView.js
View file @
bc25cc28
...
@@ -10,6 +10,8 @@ import {
...
@@ -10,6 +10,8 @@ import {
ScrollView
,
ScrollView
,
Platform
,
Platform
,
Dimensions
,
Dimensions
,
TouchableWithoutFeedback
,
Keyboard
,
}
from
'react-native'
;
}
from
'react-native'
;
import
Button
from
'../../../components/Button'
;
import
Button
from
'../../../components/Button'
;
import
PickerImgUni
from
'../../../components/Picker/PickerImgUni'
;
import
PickerImgUni
from
'../../../components/Picker/PickerImgUni'
;
...
@@ -58,6 +60,7 @@ const Profile = (props) => {
...
@@ -58,6 +60,7 @@ const Profile = (props) => {
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
style
=
{{
flex
:
1
}}
style
=
{{
flex
:
1
}}
keyboardVerticalOffset
=
{
-
50
}
>
keyboardVerticalOffset
=
{
-
50
}
>
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
>
<
ScrollView
style
=
{{
flex
:
1
}}
showsVerticalScrollIndicator
=
{
false
}
>
<
ScrollView
style
=
{{
flex
:
1
}}
showsVerticalScrollIndicator
=
{
false
}
>
<
View
<
View
style
=
{{
style
=
{{
...
@@ -90,6 +93,7 @@ const Profile = (props) => {
...
@@ -90,6 +93,7 @@ const Profile = (props) => {
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/ScrollView
>
<
/ScrollView
>
<
/TouchableWithoutFeedback
>
<
/KeyboardAvoidingView
>
<
/KeyboardAvoidingView
>
);
);
};
};
...
...
src/Screens/Authen/Authen.js
View file @
bc25cc28
...
@@ -6,6 +6,8 @@ import {
...
@@ -6,6 +6,8 @@ import {
Platform
,
Platform
,
SafeAreaView
,
SafeAreaView
,
StatusBar
,
StatusBar
,
TouchableWithoutFeedback
,
Keyboard
,
}
from
'react-native'
;
}
from
'react-native'
;
import
HeaderAuthen
from
'../../components/Header/HeaderAuthen'
;
import
HeaderAuthen
from
'../../components/Header/HeaderAuthen'
;
import
{
createMaterialTopTabNavigator
}
from
'@react-navigation/material-top-tabs'
;
import
{
createMaterialTopTabNavigator
}
from
'@react-navigation/material-top-tabs'
;
...
@@ -21,6 +23,7 @@ const Authen = (props) => {
...
@@ -21,6 +23,7 @@ const Authen = (props) => {
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
style
=
{{
flex
:
1
,
backgroundColor
:
'white'
}}
style
=
{{
flex
:
1
,
backgroundColor
:
'white'
}}
keyboardVerticalOffset
=
{
-
50
}
>
keyboardVerticalOffset
=
{
-
50
}
>
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
>
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
HeaderAuthen
/>
<
HeaderAuthen
/>
...
@@ -50,6 +53,7 @@ const Authen = (props) => {
...
@@ -50,6 +53,7 @@ const Authen = (props) => {
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/ScrollView
>
<
/ScrollView
>
<
/TouchableWithoutFeedback
>
<
/KeyboardAvoidingView
>
<
/KeyboardAvoidingView
>
);
);
};
};
...
...
src/Screens/Feedback/FeedbackView.js
View file @
bc25cc28
...
@@ -10,6 +10,8 @@ import {
...
@@ -10,6 +10,8 @@ import {
TouchableOpacity
,
TouchableOpacity
,
ImageBackground
,
ImageBackground
,
ScrollView
,
ScrollView
,
TouchableWithoutFeedback
,
Keyboard
,
}
from
'react-native'
;
}
from
'react-native'
;
import
HeaderBack
from
'../../components/Header/HeaderBack'
;
import
HeaderBack
from
'../../components/Header/HeaderBack'
;
import
RadioForm
,
{
import
RadioForm
,
{
...
@@ -58,6 +60,7 @@ const FeedbackView = (props) => {
...
@@ -58,6 +60,7 @@ const FeedbackView = (props) => {
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
style
=
{{
flex
:
1
}}
style
=
{{
flex
:
1
}}
keyboardVerticalOffset
=
{
-
50
}
>
keyboardVerticalOffset
=
{
-
50
}
>
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
>
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
HeaderBack
isWhite
=
{
true
}
title
=
{
'GỬI FEEDBACK'
}
/
>
<
HeaderBack
isWhite
=
{
true
}
title
=
{
'GỬI FEEDBACK'
}
/
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
...
@@ -144,9 +147,13 @@ const FeedbackView = (props) => {
...
@@ -144,9 +147,13 @@ const FeedbackView = (props) => {
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
containerBtn
}
>
<
View
style
=
{
styles
.
containerBtn
}
>
<
Button
onClick
=
{()
=>
console
.
log
(
'hello'
)}
title
=
{
'Gửi feedback'
}
/
>
<
Button
onClick
=
{()
=>
console
.
log
(
'hello'
)}
title
=
{
'Gửi feedback'
}
/
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/TouchableWithoutFeedback
>
<
/KeyboardAvoidingView
>
<
/KeyboardAvoidingView
>
);
);
};
};
...
...
src/Screens/Menu/Profile/Tab/GeneralInfor.js
View file @
bc25cc28
...
@@ -11,6 +11,8 @@ import {
...
@@ -11,6 +11,8 @@ import {
KeyboardAvoidingView
,
KeyboardAvoidingView
,
ScrollView
,
ScrollView
,
Platform
,
Platform
,
TouchableWithoutFeedback
,
Keyboard
,
}
from
'react-native'
;
}
from
'react-native'
;
import
R
from
'../../../../assets/R'
;
import
R
from
'../../../../assets/R'
;
import
RadioForm
,
{
import
RadioForm
,
{
...
@@ -49,6 +51,7 @@ const GeneralInfor = (props) => {
...
@@ -49,6 +51,7 @@ const GeneralInfor = (props) => {
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
style
=
{{
flex
:
1
}}
style
=
{{
flex
:
1
}}
keyboardVerticalOffset
=
{
-
500
}
>
keyboardVerticalOffset
=
{
-
500
}
>
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
>
<
ScrollView
style
=
{{
flex
:
1
}}
showsVerticalScrollIndicator
=
{
false
}
>
<
ScrollView
style
=
{{
flex
:
1
}}
showsVerticalScrollIndicator
=
{
false
}
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
TextField
<
TextField
...
@@ -118,6 +121,7 @@ const GeneralInfor = (props) => {
...
@@ -118,6 +121,7 @@ const GeneralInfor = (props) => {
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/ScrollView
>
<
/ScrollView
>
<
/TouchableWithoutFeedback
>
<
/KeyboardAvoidingView
>
<
/KeyboardAvoidingView
>
);
);
};
};
...
...
src/Screens/MethodPay/AddMethod.js
View file @
bc25cc28
...
@@ -7,6 +7,11 @@ import {
...
@@ -7,6 +7,11 @@ import {
Dimensions
,
Dimensions
,
TouchableOpacity
,
TouchableOpacity
,
Alert
,
Alert
,
ScrollView
,
KeyboardAvoidingView
,
Platform
,
TouchableWithoutFeedback
,
Keyboard
,
}
from
'react-native'
;
}
from
'react-native'
;
import
{
connect
}
from
'react-redux'
;
import
{
connect
}
from
'react-redux'
;
import
R
from
'../../assets/R'
;
import
R
from
'../../assets/R'
;
...
@@ -85,9 +90,15 @@ const AddMethodPay = (props) => {
...
@@ -85,9 +90,15 @@ const AddMethodPay = (props) => {
};
};
return
(
return
(
<
KeyboardAvoidingView
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
style
=
{{
flex
:
1
}}
keyboardVerticalOffset
=
{
-
50
}
>
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
>
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
HeaderBack
title
=
{
'Thêm phương thức thanh toán'
}
/
>
<
HeaderBack
title
=
{
'Thêm phương thức thanh toán'
}
/
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{{
flex
:
1
}}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
Ch
ọ
n
ng
â
n
h
à
ng
<
/Text
>
<
Text
style
=
{
styles
.
txtTitle
}
>
Ch
ọ
n
ng
â
n
h
à
ng
<
/Text
>
<
PickerItem
<
PickerItem
value
=
{
bank_id
}
value
=
{
bank_id
}
...
@@ -111,17 +122,23 @@ const AddMethodPay = (props) => {
...
@@ -111,17 +122,23 @@ const AddMethodPay = (props) => {
isNumber
=
{
true
}
isNumber
=
{
true
}
/
>
/
>
<
/View
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
<
TouchableOpacity
onPress
=
{
onLick
}
style
=
{
styles
.
btn
}
>
<
TouchableOpacity
onPress
=
{
onLick
}
style
=
{
styles
.
btn
}
>
<
Text
style
=
{
styles
.
txtAdd
}
>
Th
ê
m
<
/Text
>
<
Text
style
=
{
styles
.
txtAdd
}
>
Th
ê
m
<
/Text
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/TouchableWithoutFeedback
>
<
/KeyboardAvoidingView
>
);
);
};
};
const
styles
=
StyleSheet
.
create
({
const
styles
=
StyleSheet
.
create
({
container
:
{
container
:
{
paddingHorizontal
:
2
0
,
paddingHorizontal
:
1
0
,
paddingTop
:
10
,
paddingTop
:
10
,
flex
:
1
,
},
},
btn
:
{
btn
:
{
...
@@ -131,9 +148,7 @@ const styles = StyleSheet.create({
...
@@ -131,9 +148,7 @@ const styles = StyleSheet.create({
alignItems
:
'center'
,
alignItems
:
'center'
,
backgroundColor
:
R
.
colors
.
main
,
backgroundColor
:
R
.
colors
.
main
,
borderRadius
:
5
,
borderRadius
:
5
,
position
:
'absolute'
,
marginBottom
:
10
,
bottom
:
30
,
right
:
width
/
2
-
150
/
2
,
},
},
txtAdd
:
{
txtAdd
:
{
color
:
R
.
colors
.
white
,
color
:
R
.
colors
.
white
,
...
...
src/Screens/MethodPay/MethodPay.js
View file @
bc25cc28
...
@@ -6,22 +6,22 @@ import {useNavigation} from '@react-navigation/native';
...
@@ -6,22 +6,22 @@ import {useNavigation} from '@react-navigation/native';
const
MethodPay
=
(
props
)
=>
{
const
MethodPay
=
(
props
)
=>
{
const
[
data
,
setData
]
=
useState
([]);
const
[
data
,
setData
]
=
useState
([]);
const
[
isRefresh
,
setRefresh
]
=
useState
(
true
);
const
[
isRefresh
,
setRefresh
]
=
useState
(
false
);
const
navigation
=
useNavigation
();
useEffect
(()
=>
{
useEffect
(()
=>
{
const
unsubscribe
=
navigation
.
addListener
(
'focus'
,
()
=>
{
getData
();
getData
();
}
);
},
[]
);
return
unsubscribe
;
const
onRefresh
=
()
=>
{
},
[
navigation
]);
getData
();
};
const
getData
=
async
()
=>
{
const
getData
=
async
()
=>
{
setRefresh
(
true
);
const
res
=
await
getListWidthDraw
({
const
res
=
await
getListWidthDraw
({
platform
:
Platform
.
OS
,
platform
:
Platform
.
OS
,
});
});
setRefresh
(
false
);
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
setData
(
res
.
data
.
data
);
setData
(
res
.
data
.
data
);
}
else
{
}
else
{
...
@@ -29,7 +29,13 @@ const MethodPay = (props) => {
...
@@ -29,7 +29,13 @@ const MethodPay = (props) => {
}
}
};
};
return
<
MethodPayView
listMethod
=
{
data
}
/>
;
return
(
<
MethodPayView
onRefresh
=
{
onRefresh
}
listMethod
=
{
data
}
isRefresh
=
{
isRefresh
}
/
>
);
};
};
export
default
MethodPay
;
export
default
MethodPay
;
src/Screens/MethodPay/MethodPayDetail.js
View file @
bc25cc28
...
@@ -39,7 +39,6 @@ const MethodPayDetail = (props) => {
...
@@ -39,7 +39,6 @@ const MethodPayDetail = (props) => {
const
onUpdate
=
async
()
=>
{
const
onUpdate
=
async
()
=>
{
const
titles
=
[
'chi nhánh'
,
'chủ tài khoản'
,
'số tài khoản ngân hàng'
];
const
titles
=
[
'chi nhánh'
,
'chủ tài khoản'
,
'số tài khoản ngân hàng'
];
const
index
=
checkFormatArray
([
branch_name
,
account_name
,
account_no
]);
const
index
=
checkFormatArray
([
branch_name
,
account_name
,
account_no
]);
console
.
log
(
'Index'
,
index
);
if
(
index
===
true
)
{
if
(
index
===
true
)
{
if
(
if
(
branch_name
!=
params
.
branch_name
||
branch_name
!=
params
.
branch_name
||
...
...
src/Screens/MethodPay/MethodPayView.js
View file @
bc25cc28
...
@@ -11,15 +11,19 @@ import {ADDMETHODPAY} from '../../routers/ScreenNames';
...
@@ -11,15 +11,19 @@ import {ADDMETHODPAY} from '../../routers/ScreenNames';
const
MethodPayView
=
(
props
)
=>
{
const
MethodPayView
=
(
props
)
=>
{
const
navigate
=
useNavigation
();
const
navigate
=
useNavigation
();
const
{
isRefresh
,
listMethod
,
onRefresh
}
=
props
;
return
(
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
HeaderBack
title
=
{
'Cài đặt phương thức thanh toán'
}
/
>
<
HeaderBack
title
=
{
'Cài đặt phương thức thanh toán'
}
/
>
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
FlatList
<
FlatList
keyExtractor
=
{(
item
)
=>
item
.
i
d
}
keyExtractor
=
{(
item
)
=>
item
.
metho
d
}
showsVerticalScrollIndicator
=
{
false
}
showsVerticalScrollIndicator
=
{
false
}
refreshing
=
{
isRefresh
}
onRefresh
=
{
onRefresh
}
onEndReachedThreshold
=
{
0.01
}
onEndReachedThreshold
=
{
0.01
}
data
=
{
props
.
listMethod
}
data
=
{
listMethod
}
renderItem
=
{({
item
})
=>
<
Item
item
=
{
item
}
/>
}
renderItem
=
{({
item
})
=>
<
Item
item
=
{
item
}
/>
}
/>
/>
...
...
src/components/BankInfor.js
View file @
bc25cc28
...
@@ -42,7 +42,9 @@ const TextField = (props) => {
...
@@ -42,7 +42,9 @@ const TextField = (props) => {
source
=
{{
uri
:
linkImg
}}
source
=
{{
uri
:
linkImg
}}
style
=
{{
width
:
50
,
height
:
HEIGHTXD
(
109
),
marginRight
:
10
}}
style
=
{{
width
:
50
,
height
:
HEIGHTXD
(
109
),
marginRight
:
10
}}
/
>
/
>
<
Text
numberOfLines
=
{
1
}
>
{
value
}
<
/Text
>
<
Text
style
=
{{
flex
:
1
}}
numberOfLines
=
{
1
}
>
{
value
}
<
/Text
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
);
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment