react-native-acoustic-connect-beta 16.0.13 → 16.0.15

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.
@@ -15,7 +15,7 @@
15
15
  "react": "18.2.0",
16
16
  "react-dom": "18.2.0",
17
17
  "react-native": "0.72.10",
18
- "react-native-acoustic-connect-beta": "16.0.13",
18
+ "react-native-acoustic-connect-beta": "16.0.15",
19
19
  "react-native-gesture-handler": "~2.12.0",
20
20
  "react-native-keyboard-aware-scroll-view": "^0.9.5",
21
21
  "react-native-reanimated": "~3.3.0",
@@ -0,0 +1,79 @@
1
+ import React from 'react';
2
+ import { Divider, VStack, Box } from 'native-base';
3
+
4
+ export const Example = () => {
5
+ return (
6
+ <Box flex={1} w="100%" justifyContent="flex-end">
7
+ <VStack
8
+ _light={{
9
+ bg: 'cyan.100',
10
+ }}
11
+ _dark={{
12
+ bg: 'cyan.300',
13
+ }}
14
+ space={2}
15
+ divider={
16
+ <Divider
17
+ _light={{
18
+ bg: 'cyan.300',
19
+ }}
20
+ _dark={{
21
+ bg: 'cyan.200',
22
+ }}
23
+ />
24
+ }
25
+ py={2}
26
+ justifyContent="center"
27
+ >
28
+ <Box
29
+ _light={{
30
+ bg: 'cyan.300',
31
+ }}
32
+ _dark={{
33
+ bg: 'cyan.200',
34
+ }}
35
+ h="8px"
36
+ rounded="25"
37
+ mx={4}
38
+ w="40%"
39
+ />
40
+ <Box
41
+ _light={{
42
+ bg: 'cyan.300',
43
+ }}
44
+ _dark={{
45
+ bg: 'cyan.200',
46
+ }}
47
+ h="8px"
48
+ rounded="25"
49
+ mx={4}
50
+ w="50%"
51
+ />
52
+ <Box
53
+ _light={{
54
+ bg: 'cyan.300',
55
+ }}
56
+ _dark={{
57
+ bg: 'cyan.200',
58
+ }}
59
+ h="8px"
60
+ rounded="25"
61
+ mx={4}
62
+ w="37%"
63
+ />
64
+ <Box
65
+ _light={{
66
+ bg: 'cyan.300',
67
+ }}
68
+ _dark={{
69
+ bg: 'cyan.200',
70
+ }}
71
+ h="8px"
72
+ rounded="25"
73
+ mx={4}
74
+ w="47%"
75
+ />
76
+ </VStack>
77
+ </Box>
78
+ );
79
+ };
@@ -40,6 +40,19 @@ export const mapping = {
40
40
  },
41
41
  ],
42
42
  },
43
+ SignalTest: {
44
+ title: "ErrorTest",
45
+ description: "",
46
+ doclink: "https://docs.nativebase.io/action-sheet",
47
+ basic: require("../components/NativeBaseComponents/SignalTest"),
48
+ components: [
49
+ {
50
+ component: require("../nb/components/composites/SignalTest/EventSignal"),
51
+ title: "Signal Event",
52
+ description: "",
53
+ }
54
+ ],
55
+ },
43
56
  ErrorTest: {
44
57
  title: "ErrorTest",
45
58
  description: "",
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import {
3
+ Button,
4
+
5
+ Center,
6
+ } from 'native-base';
7
+ import { Connect } from 'react-native-acoustic-connect-beta';
8
+
9
+ export function Example() {
10
+
11
+ const onSignal = () =>
12
+ {
13
+ console.debug("text")
14
+ const signalObj = {
15
+ "behaviorType": "orderConfirmation",
16
+ "orderId": "145667",
17
+ "orderSubtotal": 10,
18
+ "orderShip": 10,
19
+ "orderTax": "5.99",
20
+ "orderDiscount": "10%",
21
+ "currency": "USD",
22
+ }
23
+ console.debug("text1")
24
+ Connect.logSignal(signalObj, 1).then(result =>
25
+ {
26
+ console.debug("text2")
27
+ console.debug("Result from Signal:" + result)
28
+ }
29
+ )
30
+ console.debug("text3")
31
+ }
32
+ return (
33
+ <Center>
34
+ <Button id="Event_Signal_Button" onPress={onSignal}>Test Signal</Button>
35
+ </Center>
36
+ );
37
+ }
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ // import { storiesOf } from '@storybook/react-native';
3
+ // import { withKnobs } from '@storybook/addon-knobs';
4
+ import Wrapper from '../../nb/components/Wrapper';
5
+ import { Example as EventSignal } from './EventSignal';
6
+
7
+ storiesOf('SignalTest', module)
8
+ .addDecorator(withKnobs)
9
+ .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>)
10
+ .add('EventSignal', () => <EventSignal/>)
11
+
@@ -32,6 +32,18 @@ export function MasonLayout({
32
32
  }}
33
33
  _vStack={{ space: 4 }}
34
34
  >
35
+ <StoryBook
36
+ navigation={navigation}
37
+ name="SignalTest"
38
+ minH={32}
39
+ _box={{
40
+ lightGrad: ["cyan.400", "teal.200"],
41
+ darkGrad: ["cyan.600", "teal.300"],
42
+ }}
43
+ _heading={{
44
+ color: "amber.100",
45
+ }}
46
+ />
35
47
  <StoryBook
36
48
  navigation={navigation}
37
49
  name="ErrorTest"
package/latestChanges CHANGED
@@ -25,3 +25,4 @@ Known Issues
25
25
 
26
26
  - After iOS 13, library no longer supports iPad because of Apple changes in iPad OS.
27
27
  - Dual sim features are in beta. Example information using multiple carriers.
28
+
package/package.json CHANGED
@@ -38,5 +38,5 @@
38
38
  "verifyConnectSetup": "node scripts/verifyConnectSetup.js $INIT_CWD"
39
39
  },
40
40
  "summary": "react-native ios android tealeaf connect cxa wxca er enhanced-replay",
41
- "version": "16.0.13"
41
+ "version": "16.0.15"
42
42
  }