ordering-ui-react-native 0.17.73-release → 0.17.74-release

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/themes/original/src/components/OrderDetails/index.tsx +12 -19
  3. package/src/navigators/BottomNavigator.tsx +0 -117
  4. package/src/navigators/CheckoutNavigator.tsx +0 -66
  5. package/src/navigators/HomeNavigator.tsx +0 -202
  6. package/src/navigators/NavigationRef.tsx +0 -7
  7. package/src/navigators/RootNavigator.tsx +0 -269
  8. package/src/pages/Account.tsx +0 -34
  9. package/src/pages/AddressForm.tsx +0 -62
  10. package/src/pages/AddressList.tsx +0 -24
  11. package/src/pages/BusinessProductsList.tsx +0 -81
  12. package/src/pages/BusinessesListing.tsx +0 -43
  13. package/src/pages/CartList.tsx +0 -49
  14. package/src/pages/Checkout.tsx +0 -101
  15. package/src/pages/ForgotPassword.tsx +0 -24
  16. package/src/pages/Help.tsx +0 -23
  17. package/src/pages/HelpAccountAndPayment.tsx +0 -23
  18. package/src/pages/HelpGuide.tsx +0 -23
  19. package/src/pages/HelpOrder.tsx +0 -23
  20. package/src/pages/Home.tsx +0 -36
  21. package/src/pages/IntroductoryTutorial.tsx +0 -170
  22. package/src/pages/Login.tsx +0 -47
  23. package/src/pages/MomentOption.tsx +0 -30
  24. package/src/pages/MultiCheckout.tsx +0 -31
  25. package/src/pages/MultiOrdersDetails.tsx +0 -27
  26. package/src/pages/MyOrders.tsx +0 -40
  27. package/src/pages/NetworkError.tsx +0 -24
  28. package/src/pages/NotFound.tsx +0 -22
  29. package/src/pages/OrderDetails.tsx +0 -25
  30. package/src/pages/ProductDetails.tsx +0 -55
  31. package/src/pages/Profile.tsx +0 -36
  32. package/src/pages/ReviewDriver.tsx +0 -30
  33. package/src/pages/ReviewOrder.tsx +0 -32
  34. package/src/pages/ReviewProducts.tsx +0 -30
  35. package/src/pages/Sessions.tsx +0 -22
  36. package/src/pages/Signup.tsx +0 -53
  37. package/src/pages/SpinnerLoader.tsx +0 -10
  38. package/src/pages/Splash.tsx +0 -21
@@ -1,32 +0,0 @@
1
- import React from 'react'
2
- import { Platform } from 'react-native';
3
- import styled from 'styled-components/native';
4
- import { ReviewOrder as ReviewOrderController } from '../components/ReviewOrder'
5
- import { SafeAreaContainer } from '../layouts/SafeAreaContainer';
6
-
7
- const KeyboardView = styled.KeyboardAvoidingView`
8
- flex: 1;
9
- `;
10
-
11
- const ReviewOrder = ({ navigation, route }: any) => {
12
- const reviewOrderProps = {
13
- navigation,
14
- order: route?.params?.order,
15
- setIsReviewed: route?.params?.setIsReviewed,
16
- handleReviewState: route?.params?.handleReviewState,
17
- onNavigationRedirect: (route: string, params: any) => navigation.navigate(route, params)
18
- }
19
-
20
- return (
21
- <KeyboardView
22
- enabled
23
- behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
24
- >
25
- <SafeAreaContainer>
26
- <ReviewOrderController {...reviewOrderProps} />
27
- </SafeAreaContainer>
28
- </KeyboardView>
29
- )
30
- }
31
-
32
- export default ReviewOrder
@@ -1,30 +0,0 @@
1
- import React from 'react'
2
- import { Platform } from 'react-native';
3
- import styled from 'styled-components/native';
4
- import {ReviewProducts as ReviewProductsController} from '../components/ReviewProducts'
5
- import { SafeAreaContainer } from '../layouts/SafeAreaContainer';
6
-
7
- const KeyboardView = styled.KeyboardAvoidingView`
8
- flex: 1;
9
- `;
10
-
11
- const ReviewProducts = ({navigation, route} : any) => {
12
- const reviewProductProps = {
13
- navigation,
14
- order: route?.params?.order,
15
- onNavigationRedirect: (route: string, params: any) => navigation.navigate(route, params)
16
- }
17
-
18
- return (
19
- <KeyboardView
20
- enabled
21
- behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
22
- >
23
- <SafeAreaContainer>
24
- <ReviewProductsController {...reviewProductProps} />
25
- </SafeAreaContainer>
26
- </KeyboardView>
27
- )
28
- }
29
-
30
- export default ReviewProducts
@@ -1,22 +0,0 @@
1
- import React from 'react'
2
- import { Container } from '../../themes/original/src/layouts/Container'
3
- import { Sessions as SessionsController } from '../../themes/original/src/components/Sessions'
4
-
5
- interface Props {
6
- navigation: any;
7
- route: any;
8
- }
9
-
10
- const Sessions = (props: Props) => {
11
- const sessionsProps = {
12
- ...props
13
- }
14
-
15
- return (
16
- <Container>
17
- <SessionsController {...sessionsProps} />
18
- </Container>
19
- )
20
- }
21
-
22
- export default Sessions
@@ -1,53 +0,0 @@
1
- import React from 'react';
2
- import { SignupForm } from '../components/SignupForm';
3
- import { Container } from '../layouts/Container'
4
- import styled from 'styled-components/native';
5
- import { useLanguage, useSession } from 'ordering-components/native';
6
- import { Platform } from 'react-native';
7
- import { _setStoreData, _removeStoreData } from '../providers/StoreUtil';
8
-
9
- const KeyboardView = styled.KeyboardAvoidingView`
10
- flex: 1;
11
- `;
12
-
13
- export const Signup = (props: any) => {
14
- const [, t] = useLanguage()
15
- const [, { login }] = useSession()
16
-
17
- const signupProps = {
18
- ...props,
19
- useChekoutFileds: true,
20
- loginButtonText: t('LOGIN', 'Login'),
21
- signupButtonText: t('SIGNUP', 'Signup'),
22
- useSignupByEmail: true,
23
- notificationState: props.route?.params?.notification_state,
24
- onNavigationRedirect: (page: string) => {
25
- if (!page) return
26
- props.navigation.navigate(page);
27
- },
28
- handleSuccessSignup: (user: any) => {
29
- _removeStoreData('isGuestUser')
30
- if (user?.id) {
31
- login({
32
- user,
33
- token: user.session.access_token
34
- })
35
- }
36
- }
37
- }
38
-
39
- _setStoreData('notification_state', props.route?.params?.notification_state);
40
-
41
- return (
42
- <KeyboardView
43
- enabled
44
- behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
45
- >
46
- <Container>
47
- <SignupForm {...signupProps} />
48
- </Container>
49
- </KeyboardView>
50
- );
51
- };
52
-
53
- export default Signup;
@@ -1,10 +0,0 @@
1
- import React from 'react'
2
- import Spinner from 'react-native-loading-spinner-overlay';
3
-
4
- const SpinnerLoader = () => {
5
- return (
6
- <Spinner visible />
7
- )
8
- }
9
-
10
- export default SpinnerLoader
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import styled, { useTheme } from 'styled-components/native';
3
-
4
- const LogoSplash = styled.ImageBackground`
5
- width: 100%;
6
- height: 100%;
7
- background-color: ${(props: any) => props.theme.colors.backgroundPage};
8
- `
9
-
10
- const Splash = () => {
11
- const theme = useTheme();
12
-
13
- return (
14
- <LogoSplash
15
- source={theme.images.general.loadingSplash}
16
- resizeMode='contain'
17
- />
18
- )
19
- }
20
-
21
- export default Splash;