Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Commit 01c2b79

Browse files
committed
➕ (mobx) Add peer dependencie
1 parent 0642fb9 commit 01c2b79

4 files changed

Lines changed: 62 additions & 6 deletions

File tree

example/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"test": "jest"
88
},
99
"dependencies": {
10+
"mobx": "^5.9.4",
11+
"mobx-react": "^5.4.3",
1012
"react": "16.8.3",
1113
"react-native": "0.59.3"
1214
},

example/yarn.lock

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2621,6 +2621,13 @@ has@^1.0.1, has@^1.0.3:
26212621
dependencies:
26222622
function-bind "^1.1.1"
26232623

2624+
hoist-non-react-statics@^3.0.0:
2625+
version "3.3.0"
2626+
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.0.tgz#b09178f0122184fb95acf525daaecb4d8f45958b"
2627+
integrity sha512-0XsbTXxgiaCDYDIWFcwkmerZPSwywfUqYmwT4jzewKTQSWoE6FCMoUVOeBJWK3E/CrWbxRG3m5GzY4lnIwGRBA==
2628+
dependencies:
2629+
react-is "^16.7.0"
2630+
26242631
hosted-git-info@^2.1.4:
26252632
version "2.7.1"
26262633
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047"
@@ -4239,6 +4246,19 @@ mkdirp@^0.5.0, mkdirp@^0.5.1:
42394246
dependencies:
42404247
minimist "0.0.8"
42414248

4249+
mobx-react@^5.4.3:
4250+
version "5.4.3"
4251+
resolved "https://registry.yarnpkg.com/mobx-react/-/mobx-react-5.4.3.tgz#6709b7dd89670c40e9815914ac2ca49cc02bfb47"
4252+
integrity sha512-WC8yFlwvJ91hy8j6CrydAuFteUafcuvdITFQeHl3LRIf5ayfT/4W3M/byhEYD2BcJWejeXr8y4Rh2H26RunCRQ==
4253+
dependencies:
4254+
hoist-non-react-statics "^3.0.0"
4255+
react-lifecycles-compat "^3.0.2"
4256+
4257+
mobx@^5.9.4:
4258+
version "5.9.4"
4259+
resolved "https://registry.yarnpkg.com/mobx/-/mobx-5.9.4.tgz#1dee92aba33f67b7baeeb679e3bd376a12e55812"
4260+
integrity sha512-L9JjTX2rtQUAhCIgnHokfntNOsF14uioT9LqStf6Mya+16j56ZBe21E8Y9V59tfr2aH2kLQPD10qtCJXBuTAxw==
4261+
42424262
morgan@^1.9.0:
42434263
version "1.9.1"
42444264
resolved "https://registry.yarnpkg.com/morgan/-/morgan-1.9.1.tgz#0a8d16734a1d9afbc824b99df87e738e58e2da59"
@@ -4943,11 +4963,16 @@ react-devtools-core@^3.6.0:
49434963
shell-quote "^1.6.1"
49444964
ws "^3.3.1"
49454965

4946-
react-is@^16.8.1, react-is@^16.8.3, react-is@^16.8.4:
4966+
react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.3, react-is@^16.8.4:
49474967
version "16.8.6"
49484968
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16"
49494969
integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==
49504970

4971+
react-lifecycles-compat@^3.0.2:
4972+
version "3.0.4"
4973+
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
4974+
integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==
4975+
49514976
react-native@0.59.3:
49524977
version "0.59.3"
49534978
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.59.3.tgz#b984bbe457f63d5515046d32ea5721fd22843548"

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
"declarative"
1515
],
1616
"peerDependencies": {
17-
"react": "*",
18-
"react-native": "*"
17+
"mobx-react": "*",
18+
"mobx": "*",
19+
"react-native": "*",
20+
"react": "*"
1921
},
2022
"scripts": {
2123
"test": "jest"
@@ -24,15 +26,17 @@
2426
"@babel/core": "^7.4.3",
2527
"@babel/runtime": "^7.4.3",
2628
"@types/jest": "^24.0.11",
29+
"@types/react": "^16.8.11",
2730
"@types/react-native": "^0.57.42",
2831
"@types/react-test-renderer": "^16.8.1",
29-
"@types/react": "^16.8.11",
3032
"babel-jest": "^24.7.0",
3133
"jest": "^24.7.0",
3234
"metro-react-native-babel-preset": "^0.53.1",
35+
"mobx": "^5.9.4",
36+
"mobx-react": "^5.4.3",
37+
"react": "16.8.3",
3338
"react-native": "0.59.3",
3439
"react-test-renderer": "16.8.3",
35-
"react": "16.8.3",
3640
"typescript": "^3.4.1"
3741
}
3842
}

yarn.lock

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2621,6 +2621,13 @@ has@^1.0.1, has@^1.0.3:
26212621
dependencies:
26222622
function-bind "^1.1.1"
26232623

2624+
hoist-non-react-statics@^3.0.0:
2625+
version "3.3.0"
2626+
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.0.tgz#b09178f0122184fb95acf525daaecb4d8f45958b"
2627+
integrity sha512-0XsbTXxgiaCDYDIWFcwkmerZPSwywfUqYmwT4jzewKTQSWoE6FCMoUVOeBJWK3E/CrWbxRG3m5GzY4lnIwGRBA==
2628+
dependencies:
2629+
react-is "^16.7.0"
2630+
26242631
hosted-git-info@^2.1.4:
26252632
version "2.7.1"
26262633
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047"
@@ -4244,6 +4251,19 @@ mkdirp@^0.5.0, mkdirp@^0.5.1:
42444251
dependencies:
42454252
minimist "0.0.8"
42464253

4254+
mobx-react@^5.4.3:
4255+
version "5.4.3"
4256+
resolved "https://registry.yarnpkg.com/mobx-react/-/mobx-react-5.4.3.tgz#6709b7dd89670c40e9815914ac2ca49cc02bfb47"
4257+
integrity sha512-WC8yFlwvJ91hy8j6CrydAuFteUafcuvdITFQeHl3LRIf5ayfT/4W3M/byhEYD2BcJWejeXr8y4Rh2H26RunCRQ==
4258+
dependencies:
4259+
hoist-non-react-statics "^3.0.0"
4260+
react-lifecycles-compat "^3.0.2"
4261+
4262+
mobx@^5.9.4:
4263+
version "5.9.4"
4264+
resolved "https://registry.yarnpkg.com/mobx/-/mobx-5.9.4.tgz#1dee92aba33f67b7baeeb679e3bd376a12e55812"
4265+
integrity sha512-L9JjTX2rtQUAhCIgnHokfntNOsF14uioT9LqStf6Mya+16j56ZBe21E8Y9V59tfr2aH2kLQPD10qtCJXBuTAxw==
4266+
42474267
morgan@^1.9.0:
42484268
version "1.9.1"
42494269
resolved "https://registry.yarnpkg.com/morgan/-/morgan-1.9.1.tgz#0a8d16734a1d9afbc824b99df87e738e58e2da59"
@@ -4948,11 +4968,16 @@ react-devtools-core@^3.6.0:
49484968
shell-quote "^1.6.1"
49494969
ws "^3.3.1"
49504970

4951-
react-is@^16.8.1, react-is@^16.8.3, react-is@^16.8.4:
4971+
react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.3, react-is@^16.8.4:
49524972
version "16.8.6"
49534973
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16"
49544974
integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==
49554975

4976+
react-lifecycles-compat@^3.0.2:
4977+
version "3.0.4"
4978+
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
4979+
integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==
4980+
49564981
react-native@0.59.3:
49574982
version "0.59.3"
49584983
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.59.3.tgz#b984bbe457f63d5515046d32ea5721fd22843548"

0 commit comments

Comments
 (0)