From cbbb53629eea85140c530dfb2f818264e2e34337 Mon Sep 17 00:00:00 2001 From: Kosuke Tseng Date: Mon, 14 Jun 2021 21:27:47 -0700 Subject: [PATCH 01/29] Add header and make sure things are loading --- .../ReimbursementAccount/ValidationStep.js | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/src/pages/ReimbursementAccount/ValidationStep.js b/src/pages/ReimbursementAccount/ValidationStep.js index 43628ea79677..e53cf203e0c1 100644 --- a/src/pages/ReimbursementAccount/ValidationStep.js +++ b/src/pages/ReimbursementAccount/ValidationStep.js @@ -1,5 +1,25 @@ import React from 'react'; -import {View} from 'react-native'; +import {View, TextInput} from 'react-native'; +import HeaderWithCloseButton from '../../components/HeaderWithCloseButton'; +import Navigation from '../../libs/Navigation/Navigation'; +import styles from '../../styles/styles'; +import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize'; -const ValidationStep = () => ; -export default ValidationStep; +const propTypes = { + ...withLocalizePropTypes, +}; + +class ValidationStep extends React.Component { + render() { + return ( + + + + ); + } +} + +export default withLocalize(ValidationStep); From 68d98296e46a748567d76df2e27bc4a9e78bcaad Mon Sep 17 00:00:00 2001 From: Kosuke Tseng Date: Mon, 14 Jun 2021 21:53:08 -0700 Subject: [PATCH 02/29] get props and state --- .../ReimbursementAccount/ValidationStep.js | 31 +++++++++++++++++-- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/src/pages/ReimbursementAccount/ValidationStep.js b/src/pages/ReimbursementAccount/ValidationStep.js index e53cf203e0c1..979cf7c6e34c 100644 --- a/src/pages/ReimbursementAccount/ValidationStep.js +++ b/src/pages/ReimbursementAccount/ValidationStep.js @@ -1,15 +1,26 @@ import React from 'react'; -import {View, TextInput} from 'react-native'; -import HeaderWithCloseButton from '../../components/HeaderWithCloseButton'; -import Navigation from '../../libs/Navigation/Navigation'; +import {View} from 'react-native'; import styles from '../../styles/styles'; import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize'; +import Button from '../../components/Button'; +import HeaderWithCloseButton from '../../components/HeaderWithCloseButton'; +import Navigation from '../../libs/Navigation/Navigation'; +import TextInputWithLabel from '../../components/TextInputWithLabel'; + const propTypes = { ...withLocalizePropTypes, }; class ValidationStep extends React.Component { + constructor(props) { + super(props); + + this.state = { + amount1: 0, + }; + } + render() { return ( @@ -17,9 +28,23 @@ class ValidationStep extends React.Component { title="Validation Step" onCloseButtonPress={Navigation.dismissModal} /> + this.setState({amount1})} + /> +