- React Native
- Typescript
- Styled components
- yarn
- cd ios > pod install
- cd ..
- yarn ios
- Main screen: src/screens/auth/signin/signin.tsx
- Button component (KastaButton): /src/components/kasta-button/kasta-button.tsx
UI Side
: It's not clear how we go back toDefault
state fromSuccess
andError
state. For now, we can click onSuccess
andError
button to start again.API Side
:
- It's difficult to judge if the payment create is successful or not. Depending on it, we need to set the button to
Error
status. It would be great if we have error response when we fail to create payment. - It's also difficult to get error cases for payment status. We only have progress - no field for
Success
orFailure
. So for now, I just assumed the error case when if the progress after some time like 15s is still under 100.(as it is said the progress is increased by 10% every 1s.). We can also inculde error response for payment failures.