@pinwheel/react-native-pinwheel 2.3.9 → 2.3.10
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/README.md +20 -12
- package/lib/index.js +4 -1
- package/package.json +3 -3
- package/CHANGELOG.md +0 -33
package/README.md
CHANGED
|
@@ -94,20 +94,28 @@ Callback for all significant events that happen during the modal flow. See all p
|
|
|
94
94
|
| -------- | -------- |
|
|
95
95
|
| function | No |
|
|
96
96
|
|
|
97
|
-
#
|
|
97
|
+
# Testing Locally
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
## Dependencies
|
|
100
|
+
|
|
101
|
+
- Node 16.7.0 (check with `node -v` and upgrade versions using `nvm`)
|
|
102
|
+
- iPhone 14 simulator (open your Simulator app and check the available versions)
|
|
103
|
+
- iOS 16 running on the simulator (open your Simulator app and check the available versions)
|
|
104
|
+
- `pod` version 1.11.3 (check with `pod --version`)
|
|
105
|
+
|
|
106
|
+
## Directions
|
|
107
|
+
|
|
108
|
+
- `npm i`
|
|
109
|
+
- Bump the version number in `package.json`: `"version": "2.x.x",`
|
|
110
|
+
- Bump the version number in `src/index.tsx`: `const version = '2.x.x';`
|
|
101
111
|
- `npm run build`
|
|
102
112
|
- `npm pack`
|
|
103
|
-
-
|
|
104
|
-
- Update version
|
|
105
|
-
- `
|
|
113
|
+
- `cd example`
|
|
114
|
+
- Update the version of the tgz file in `package.json`: `"@pinwheel/react-native-pinwheel": "../pinwheel-react-native-pinwheel-2.x.x.tgz"`
|
|
115
|
+
- Update version number in `package.json`: `"version": "2.x.x"`
|
|
116
|
+
- `npm install`
|
|
106
117
|
- `npx react-native start --reset-cache`
|
|
107
|
-
- `cd ios` `pod install`
|
|
118
|
+
- Open a new terminal window `cd ios` from the `example` directory and `pod install`
|
|
108
119
|
- Add production sandbox key for testing purposes only to `example/App.js`: `const API_SECRET = "";`
|
|
109
|
-
- `npm run ios`
|
|
110
|
-
- Remove production sandbox key when finished with testing
|
|
111
|
-
- `git tag -a 2.1.0 -m "Message about new version"`
|
|
112
|
-
- `git push origin 2.1.0`
|
|
113
|
-
- `npm publish` (you will need to have set up your NPM credentials for this to work)
|
|
120
|
+
- Navigate back to the root directory of this repo and `npm run ios`
|
|
121
|
+
- **IMPORTANT: Remove production sandbox key when finished with testing**
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WebView } from 'react-native-webview';
|
|
3
3
|
import { Linking, Platform, SafeAreaView, StyleSheet } from 'react-native';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Importing package.json here causes a problem with the folder structure when we npm pack and publish.
|
|
6
|
+
*/
|
|
7
|
+
const version = '2.3.10';
|
|
5
8
|
const styles = StyleSheet.create({
|
|
6
9
|
container: {
|
|
7
10
|
flex: 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinwheel/react-native-pinwheel",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pinwheel React Native SDK",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsc",
|
|
13
|
-
"
|
|
13
|
+
"prepublish": "./scripts/prepublish.sh"
|
|
14
14
|
},
|
|
15
15
|
"author": "Pinwheel",
|
|
16
16
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/react-native": "^0.63.29",
|
|
24
|
-
"react-native-webview": "^
|
|
24
|
+
"react-native-webview": "^11.0.0",
|
|
25
25
|
"typescript": "^4.0.3"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
## 2.3.x Releases
|
|
6
|
-
|
|
7
|
-
- `2.3.x` Releases - [2.3.4](#234) [2.3.5](#235) [2.3.6](#236)
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
### [2.3.6](https://github.com/underdog-tech/react-native-pinwheel/releases/tag/2.3.6)
|
|
12
|
-
|
|
13
|
-
N/A
|
|
14
|
-
|
|
15
|
-
### [2.3.5](https://github.com/underdog-tech/react-native-pinwheel/releases/tag/2.3.5)
|
|
16
|
-
|
|
17
|
-
N/A
|
|
18
|
-
|
|
19
|
-
### [2.3.4](https://github.com/underdog-tech/react-native-pinwheel/releases/tag/2.3.4)
|
|
20
|
-
|
|
21
|
-
#### Added
|
|
22
|
-
|
|
23
|
-
- Export `EventPayload` type.
|
|
24
|
-
- Export `PinwheelError` type.
|
|
25
|
-
- Export `PinwheelErrorType` type.
|
|
26
|
-
- Export `EmptyPayloadObject` type as `Record<string, never>`.
|
|
27
|
-
|
|
28
|
-
##### Updated
|
|
29
|
-
|
|
30
|
-
- `EventPayload` is no longer a union containing `{}`. It now contains `Record<string, never>` instead due to [this behavior](https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-all-types-assignable-to-empty-interfaces).
|
|
31
|
-
- Mark exported `Error` type as **@deprecated** because it collides with the built-in javascript `Error` object. Replaced with `PinwheelError`.
|
|
32
|
-
- Mark exported `ErrorType` type as **@deprecated** because the new naming convention is prefixing with "`PinwheelError`". Replaced with `PinwheelErrorType`.
|
|
33
|
-
- Update `onExit` type to be `(error: PinwheelError | Record<string, never>)` to be accurate with current functionality.
|