ordering-ui-react-native 0.18.55 → 0.18.56
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-react-native",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.56",
|
|
4
4
|
"description": "Reusable components made in react native",
|
|
5
5
|
"main": "src/index.tsx",
|
|
6
6
|
"author": "ordering.inc",
|
|
@@ -49,8 +49,6 @@
|
|
|
49
49
|
"@react-navigation/material-bottom-tabs": "^5.3.14",
|
|
50
50
|
"@react-navigation/native": "^5.7.6",
|
|
51
51
|
"@react-navigation/stack": "^5.9.3",
|
|
52
|
-
"@segment/analytics-react-native": "^2.1.11",
|
|
53
|
-
"@segment/sovran-react-native": "^0.2.6",
|
|
54
52
|
"@sentry/react-native": "^2.6.0",
|
|
55
53
|
"@stripe/stripe-react-native": "^0.2.0",
|
|
56
54
|
"@types/react-native-loading-spinner-overlay": "^0.5.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AddressForm } from './src/components/AddressForm';
|
|
2
2
|
import { AddressDetails } from './src/components/AddressDetails';
|
|
3
|
-
import { AnalyticsSegment } from './src/components/AnalyticsSegment';
|
|
3
|
+
// import { AnalyticsSegment } from './src/components/AnalyticsSegment';
|
|
4
4
|
import { Home } from './src/components/Home';
|
|
5
5
|
import { LoginForm } from './src/components/LoginForm';
|
|
6
6
|
import { SignupForm } from './src/components/SignupForm';
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
export {
|
|
168
168
|
AddressForm,
|
|
169
169
|
AddressDetails,
|
|
170
|
-
AnalyticsSegment,
|
|
170
|
+
// AnalyticsSegment,
|
|
171
171
|
Home as HomeView,
|
|
172
172
|
SignupForm,
|
|
173
173
|
LoginForm,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
createClient,
|
|
4
|
+
// AnalyticsProvider
|
|
5
|
+
} from '@segment/analytics-react-native';
|
|
3
6
|
import { useEvent, useConfig, useLanguage } from 'ordering-components/native';
|
|
4
7
|
|
|
5
8
|
export const AnalyticsSegment = (props: any) => {
|
|
@@ -299,9 +302,9 @@ export const AnalyticsSegment = (props: any) => {
|
|
|
299
302
|
|
|
300
303
|
return (
|
|
301
304
|
<>
|
|
302
|
-
<AnalyticsProvider client={segmentClient}>
|
|
305
|
+
{/* <AnalyticsProvider client={segmentClient}>
|
|
303
306
|
{children}
|
|
304
|
-
</AnalyticsProvider>
|
|
307
|
+
</AnalyticsProvider> */}
|
|
305
308
|
</>
|
|
306
309
|
)
|
|
307
310
|
}
|