@quiltt/react-native 3.2.1 → 3.3.0

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 (3) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +37 -6
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @quiltt/react-native
2
2
 
3
+ ## 3.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2a6410f: Add profileId to ConnectorSDKCallbackMetadata
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [2a6410f]
12
+ - @quiltt/core@3.3.0
13
+ - @quiltt/react@3.3.0
14
+
15
+ ## 3.2.2
16
+
17
+ ### Patch Changes
18
+
19
+ - 9f3783a: Fix React Native package entry point
20
+ - Updated dependencies [9f3783a]
21
+ - @quiltt/core@3.2.2
22
+ - @quiltt/react@3.2.2
23
+
3
24
  ## 3.2.1
4
25
 
5
26
  ### Patch Changes
package/README.md CHANGED
@@ -1,10 +1,39 @@
1
- # Quiltt Connector React Native SDK
1
+ # @quiltt/react-native
2
+
3
+ [![npm version](https://badge.fury.io/js/@quiltt%2Freact-native.svg)](https://badge.fury.io/js/@quiltt%2Freact-native)
4
+ [![CI](https://github.com/quiltt/quiltt-public/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/quiltt/quiltt-public/actions/workflows/ci.yml)
5
+
6
+ `@quiltt/react-native` provides React Native Components for integrating Quiltt Connector into React Native and Expo applications.
7
+
8
+ ## Installation
9
+
10
+ ```shell
11
+ $ npm install @quiltt/react
12
+ # or
13
+ $ yarn add @quiltt/react
14
+ # or
15
+ # Please note that you will need to add `node-linker=hoisted` in `.npmrc` if you are using pnpm in expo app.`
16
+ $ pnpm add @quiltt/react
17
+ ```
18
+
19
+ ### QuilttConnector
20
+
21
+ Launch the [Quiltt Connector](https://www.quiltt.dev/guides/connector) in a webview.
22
+
23
+ `@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.
24
+
25
+ For simple usage of `react-navigation`, please see [App.tsx](ECMAScript/react-native/example/App.tsx) and [ConnectorScreen.tsx](ECMAScript/react-native/example/screens/ConnectorScreen.tsx).
26
+
27
+ #### Example
2
28
 
3
29
  ```typescript
4
30
  import { useState } from 'react'
31
+ import { QuilttProvider } from '@quiltt/react'
5
32
  import { QuilttConnector } from '@quiltt/react-native'
6
33
 
7
34
  export const App = () => {
35
+ // See: https://www.quiltt.dev/api-reference/rest/auth#/paths/~1v1~1users~1sessions/post
36
+ const token = 'GET_THIS_TOKEN_FROM_YOUR_SERVER'
8
37
  const [connectionId, setConnectionId] = useState<string>()
9
38
  const oAuthRedirectUrl = "quilttexample://open.reactnative.app"
10
39
  const handleExitSuccess = (metadata) => {
@@ -12,11 +41,13 @@ export const App = () => {
12
41
  }
13
42
 
14
43
  return (
15
- <QuilttConnector
16
- connectorId="<CONNECTOR_ID>"
17
- oAuthRedirectUrl={oAuthRedirectUrl}
18
- onExitSuccess={handleExitSuccess}
19
- />
44
+ <QuilttProvider token={token}>
45
+ <QuilttConnector
46
+ connectorId="<CONNECTOR_ID>"
47
+ oAuthRedirectUrl={oAuthRedirectUrl}
48
+ onExitSuccess={handleExitSuccess}
49
+ />
50
+ </QuilttProvider>
20
51
  )
21
52
  }
22
53
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@quiltt/react-native",
3
- "version": "3.2.1",
3
+ "version": "3.3.0",
4
4
  "description": "React Native components for Quiltt Connector",
5
- "main": "./dist/index.cjs",
6
- "module": "./dist/index.js",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
8
8
  "files": [
9
9
  "dist/**",
@@ -23,8 +23,8 @@
23
23
  "dependencies": {
24
24
  "core-js": "3.33.2",
25
25
  "react-native-webview": "13.6.2",
26
- "@quiltt/core": "3.2.1",
27
- "@quiltt/react": "3.2.1"
26
+ "@quiltt/core": "3.3.0",
27
+ "@quiltt/react": "3.3.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@apollo/client": "3.7.16",