react-native-onyx 1.0.58 → 1.0.60

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/lib/withOnyx.js CHANGED
@@ -213,7 +213,8 @@ export default function (mapOnyxToState) {
213
213
  withOnyx.propTypes = {
214
214
  forwardedRef: PropTypes.oneOfType([
215
215
  PropTypes.func,
216
- PropTypes.shape({current: PropTypes.instanceOf(React.Component)}),
216
+ // eslint-disable-next-line react/forbid-prop-types
217
+ PropTypes.shape({current: PropTypes.object}),
217
218
  ]),
218
219
  };
219
220
  withOnyx.defaultProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "1.0.58",
3
+ "version": "1.0.60",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",
@@ -31,6 +31,7 @@
31
31
  "react-native": "native.js",
32
32
  "main": "native.js",
33
33
  "browser": "web.js",
34
+ "types": "lib/index.d.ts",
34
35
  "scripts": {
35
36
  "lint": "eslint .",
36
37
  "lint-tests": "eslint tests/**",
@@ -50,6 +51,7 @@
50
51
  "@react-native-community/eslint-config": "^2.0.0",
51
52
  "@testing-library/jest-native": "^3.4.2",
52
53
  "@testing-library/react-native": "^7.0.2",
54
+ "@types/react": "^18.2.14",
53
55
  "babel-eslint": "^10.1.0",
54
56
  "babel-jest": "^26.2.2",
55
57
  "babel-loader": "^8.2.5",
@@ -68,6 +70,7 @@
68
70
  "react-native-performance": "^2.0.0",
69
71
  "react-native-quick-sqlite": "^8.0.0-beta.2",
70
72
  "react-test-renderer": "18.1.0",
73
+ "type-fest": "^3.12.0",
71
74
  "webpack": "^5.72.1",
72
75
  "webpack-cli": "^4.9.2",
73
76
  "webpack-merge": "^5.8.0"