@quiltt/react-native 3.7.2 → 3.7.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @quiltt/react-native
2
2
 
3
+ ## 3.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#293](https://github.com/quiltt/quiltt-js/pull/293) [`f4b48e6`](https://github.com/quiltt/quiltt-js/commit/f4b48e6db199cae4e880202c28974b481890b7c6) Thanks [@rubendinho](https://github.com/rubendinho)! - Improve documentation
8
+
9
+ - Updated dependencies [[`f4b48e6`](https://github.com/quiltt/quiltt-js/commit/f4b48e6db199cae4e880202c28974b481890b7c6)]:
10
+ - @quiltt/react@3.7.3
11
+ - @quiltt/core@3.7.3
12
+
3
13
  ## 3.7.2
4
14
 
5
15
  ### Patch Changes
package/README.md CHANGED
@@ -21,35 +21,37 @@ $ pnpm add base-64 react-native-webview react-native-url-polyfill
21
21
  $ pnpm add @quiltt/react-native
22
22
  ```
23
23
 
24
+ ## Documentation
25
+ For SDK documentation and more code examples, see the [React Native guide](https://www.quiltt.dev/connector/sdk/react-native).
26
+
24
27
  ### QuilttConnector
25
28
 
26
29
  Launch the [Quiltt Connector](https://www.quiltt.dev/connector) in a webview.
27
30
 
28
- `@quiltt/react-native` does not include any navigation library, you might want to navigate to a new "page" when using QuilttConnector to get the best result.
29
-
30
- For simple usage of `react-navigation`, please see [App.tsx](../../examples/react-native-expo/App.tsx) and [ConnectorScreen.tsx](../../examples/react-native-expo/screens/ConnectorScreen.tsx).
31
+ `@quiltt/react-native` does not ship with a navigation library, so you might want to navigate to a new "page" when using QuilttConnector.
31
32
 
32
33
  #### Example
33
34
 
34
35
  ```tsx
35
- import { useState } from 'react'
36
36
  import { QuilttProvider } from '@quiltt/react'
37
37
  import { QuilttConnector } from '@quiltt/react-native'
38
38
 
39
39
  export const App = () => {
40
40
  // See: https://www.quiltt.dev/authentication/issuing-session-tokens
41
- const token = 'GET_THIS_TOKEN_FROM_YOUR_SERVER'
42
- const [connectionId, setConnectionId] = useState<string>()
41
+ const sessionToken = '<TOKEN_OBTAINED_FROM_THE_SERVER>'
43
42
  const oAuthRedirectUrl = 'quilttexample://open.reactnative.app'
43
+
44
44
  const handleExitSuccess = (metadata) => {
45
- setConnectionId(metadata?.connectionId)
45
+ console.log('Successfully created connection!', metadata)
46
46
  }
47
47
 
48
48
  return (
49
- <QuilttProvider token={token}>
49
+ <QuilttProvider token={sessionToken}>
50
50
  <QuilttConnector
51
51
  connectorId="<CONNECTOR_ID>"
52
52
  oAuthRedirectUrl={oAuthRedirectUrl}
53
+
54
+ // See the JavaScript API docs for the full list of available callbacks
53
55
  onExitSuccess={handleExitSuccess}
54
56
  />
55
57
  </QuilttProvider>
package/dist/index.cjs CHANGED
@@ -11,7 +11,7 @@ var reactNativeWebview = require('react-native-webview');
11
11
  var util = require('@honeybadger-io/core/build/src/util');
12
12
 
13
13
  // Generated by genversion.
14
- const version = '3.7.2';
14
+ const version = '3.7.3';
15
15
 
16
16
  const ErrorReporterConfig = {
17
17
  honeybadger_api_key: 'undefined'
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import { WebView } from 'react-native-webview';
10
10
  import { generateStackTrace, makeBacktrace, getCauses } from '@honeybadger-io/core/build/src/util';
11
11
 
12
12
  // Generated by genversion.
13
- const version = '3.7.2';
13
+ const version = '3.7.3';
14
14
 
15
15
  const ErrorReporterConfig = {
16
16
  honeybadger_api_key: 'undefined'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quiltt/react-native",
3
- "version": "3.7.2",
3
+ "version": "3.7.3",
4
4
  "description": "React Native components for Quiltt Connector",
5
5
  "homepage": "https://github.com/quiltt/quiltt-js/tree/main/packages/react-native#readme",
6
6
  "repository": {
@@ -30,8 +30,8 @@
30
30
  "base-64": "1.0.0",
31
31
  "react-native-url-polyfill": "2.0.0",
32
32
  "react-native-webview": "13.10.7",
33
- "@quiltt/react": "3.7.2",
34
- "@quiltt/core": "3.7.2"
33
+ "@quiltt/core": "3.7.3",
34
+ "@quiltt/react": "3.7.3"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@apollo/client": "3.9.11",
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '3.7.2'
2
+ export const version = '3.7.3'