-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Refactor iou page by separating each step as individual screen #17964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c586193
368e8b8
a58e71e
bab5196
97d2be9
d378732
7b7acdb
cac0e42
2860ba1
8ed9a73
9dea294
b2b5d1b
e752126
b945808
4fdf587
140d06c
98c738e
cd1e9f1
6044687
21cdea4
c870ca3
bba01c9
5ec9c35
cad43eb
a26462c
ce90548
c69d294
cfea01e
40ece27
8426f34
ddf42f1
d56920f
b0953a0
8e4dcb3
7a3f016
979290f
211488b
31b454b
f16aa2b
c12f344
42e4173
370ac15
dcc861c
644c3a0
c3b6c22
7ef9713
280dc50
b3311b5
fe96e68
33edff4
47c33ba
9533027
beaccef
9d4b46f
4891483
c2e8476
b882f24
a116868
1884630
30fae0d
9631fed
7fc061c
81838bf
92328d0
7903441
4fce88d
5e55b02
6ff8594
2c5797c
a2bef09
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
bernhardoj marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -32,37 +32,41 @@ function createModalStackNavigator(screens) { | |||||
} | ||||||
|
||||||
// We use getComponent/require syntax so that file used by screens are not loaded until we need them. | ||||||
const IOUBillStackNavigator = createModalStackNavigator([ | ||||||
const MoneyRequestModalStackNavigator = createModalStackNavigator([ | ||||||
{ | ||||||
getComponent: () => { | ||||||
const IOUBillPage = require('../../../pages/iou/IOUBillPage').default; | ||||||
return IOUBillPage; | ||||||
const MoneyRequestAmountPage = require('../../../pages/iou/steps/MoneyRequestAmountPage').default; | ||||||
return MoneyRequestAmountPage; | ||||||
}, | ||||||
name: 'IOU_Bill_Root', | ||||||
name: 'Money_Request', | ||||||
}, | ||||||
{ | ||||||
getComponent: () => { | ||||||
const IOUCurrencySelection = require('../../../pages/iou/IOUCurrencySelection').default; | ||||||
return IOUCurrencySelection; | ||||||
const MoneyRequestEditAmountPage = require('../../../pages/iou/steps/MoneyRequestAmountPage').default; | ||||||
return MoneyRequestEditAmountPage; | ||||||
}, | ||||||
name: 'IOU_Bill_Currency', | ||||||
name: 'Money_Request_Amount', | ||||||
}, | ||||||
{ | ||||||
getComponent: () => { | ||||||
const MoneyRequestParticipantsPage = require('../../../pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage').default; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is a mistake no?
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah that is confusing. Lets fix it in a follow up |
||||||
return MoneyRequestParticipantsPage; | ||||||
}, | ||||||
name: 'Money_Request_Participants', | ||||||
}, | ||||||
]); | ||||||
|
||||||
const IOURequestModalStackNavigator = createModalStackNavigator([ | ||||||
{ | ||||||
getComponent: () => { | ||||||
const IOURequestPage = require('../../../pages/iou/IOURequestPage').default; | ||||||
return IOURequestPage; | ||||||
const MoneyRequestConfirmPage = require('../../../pages/iou/steps/MoneyRequestConfirmPage').default; | ||||||
return MoneyRequestConfirmPage; | ||||||
}, | ||||||
name: 'IOU_Request_Root', | ||||||
name: 'Money_Request_Confirmation', | ||||||
}, | ||||||
{ | ||||||
getComponent: () => { | ||||||
const IOUCurrencySelection = require('../../../pages/iou/IOUCurrencySelection').default; | ||||||
return IOUCurrencySelection; | ||||||
}, | ||||||
name: 'IOU_Request_Currency', | ||||||
name: 'Money_Request_Currency', | ||||||
}, | ||||||
{ | ||||||
getComponent: () => { | ||||||
|
@@ -71,23 +75,6 @@ const IOURequestModalStackNavigator = createModalStackNavigator([ | |||||
}, | ||||||
name: 'Money_Request_Description', | ||||||
}, | ||||||
]); | ||||||
|
||||||
const IOUSendModalStackNavigator = createModalStackNavigator([ | ||||||
{ | ||||||
getComponent: () => { | ||||||
const IOUSendPage = require('../../../pages/iou/IOUSendPage').default; | ||||||
return IOUSendPage; | ||||||
}, | ||||||
name: 'IOU_Send_Root', | ||||||
}, | ||||||
{ | ||||||
getComponent: () => { | ||||||
const IOUCurrencySelection = require('../../../pages/iou/IOUCurrencySelection').default; | ||||||
return IOUCurrencySelection; | ||||||
}, | ||||||
name: 'IOU_Send_Currency', | ||||||
}, | ||||||
{ | ||||||
getComponent: () => { | ||||||
const AddPersonalBankAccountPage = require('../../../pages/AddPersonalBankAccountPage').default; | ||||||
|
@@ -730,9 +717,7 @@ const FlagCommentStackNavigator = createModalStackNavigator([ | |||||
]); | ||||||
|
||||||
export { | ||||||
IOUBillStackNavigator, | ||||||
IOURequestModalStackNavigator, | ||||||
IOUSendModalStackNavigator, | ||||||
MoneyRequestModalStackNavigator, | ||||||
SplitDetailsModalStackNavigator, | ||||||
DetailsModalStackNavigator, | ||||||
ProfileModalStackNavigator, | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.