Skip to content

Commit 49716ac

Browse files
committed
v2.6.1 fix ViewPropTypes
1 parent 1ae8e7b commit 49716ac

File tree

3 files changed

+61
-4
lines changed

3 files changed

+61
-4
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { PropTypes } from 'prop-types';
22
import React, { Component } from 'react';
33
import {
44
Platform, StatusBar,
5-
StyleSheet, Text, View, ViewPropTypes
5+
StyleSheet, Text, View
66
} from 'react-native';
7+
import { ViewPropTypes } from 'deprecated-react-native-prop-types';
78
import { isIPhoneX } from 'react-native-isiphonex-device';
89

910
const NAV_BAR_HEIGHT_IOS = 44; //导航栏在iOS中的高度

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-navbar-plus",
3-
"version": "2.5.0",
3+
"version": "2.6.1",
44
"description": "A react native module to show navbar, it works on iOS and Android.",
55
"main": "index.js",
66
"types": "index.d.ts",
@@ -26,12 +26,13 @@
2626
"url": "https://github.com/crazycodeboy/react-native-navbar-plus/issues"
2727
},
2828
"dependencies": {
29+
"deprecated-react-native-prop-types": "^2.3.0",
2930
"prop-types": "^15.6.0"
3031
},
3132
"peerDependencies": {
32-
"react-native-isiphonex-device": ">=2.5.0",
33+
"prop-types": "^15.5.7",
3334
"react-native": ">=0.20.0",
34-
"prop-types": "^15.5.7"
35+
"react-native-isiphonex-device": ">=2.5.0"
3536
},
3637
"homepage": "https://github.com/crazycodeboy/react-native-navbar-plus#readme"
3738
}

yarn.lock

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
"@react-native/normalize-color@*":
6+
version "2.0.0"
7+
resolved "https://registry.yarnpkg.com/@react-native/normalize-color/-/normalize-color-2.0.0.tgz#da955909432474a9a0fe1cbffc66576a0447f567"
8+
integrity sha512-Wip/xsc5lw8vsBlmY2MO/gFLp3MvuZ2baBZjDeTjjndMgM0h5sxz7AZR62RDPGgstp8Np7JzjvVqVT7tpFZqsw==
9+
10+
deprecated-react-native-prop-types@^2.3.0:
11+
version "2.3.0"
12+
resolved "https://registry.yarnpkg.com/deprecated-react-native-prop-types/-/deprecated-react-native-prop-types-2.3.0.tgz#c10c6ee75ff2b6de94bb127f142b814e6e08d9ab"
13+
integrity sha512-pWD0voFtNYxrVqvBMYf5gq3NA2GCpfodS1yNynTPc93AYA/KEMGeWDqqeUB6R2Z9ZofVhks2aeJXiuQqKNpesA==
14+
dependencies:
15+
"@react-native/normalize-color" "*"
16+
invariant "*"
17+
prop-types "*"
18+
19+
invariant@*:
20+
version "2.2.4"
21+
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
22+
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
23+
dependencies:
24+
loose-envify "^1.0.0"
25+
26+
"js-tokens@^3.0.0 || ^4.0.0":
27+
version "4.0.0"
28+
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
29+
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
30+
31+
loose-envify@^1.0.0, loose-envify@^1.4.0:
32+
version "1.4.0"
33+
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
34+
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
35+
dependencies:
36+
js-tokens "^3.0.0 || ^4.0.0"
37+
38+
object-assign@^4.1.1:
39+
version "4.1.1"
40+
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
41+
integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==
42+
43+
prop-types@*, prop-types@^15.6.0:
44+
version "15.8.1"
45+
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
46+
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
47+
dependencies:
48+
loose-envify "^1.4.0"
49+
object-assign "^4.1.1"
50+
react-is "^16.13.1"
51+
52+
react-is@^16.13.1:
53+
version "16.13.1"
54+
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
55+
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==

0 commit comments

Comments
 (0)