Skip to content

Commit 7191089

Browse files
authored
Use legacy npm dist-tag to avoid conflicts with victory-native-xl (#2764)
1 parent a53059f commit 7191089

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

.changeset/pink-hats-count.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"victory-native": patch
3+
---
4+
5+
Use legacy npm dist-tag to avoid conflicts with victory-native-xl

docs/src/content/introduction/native.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ scope: null
88

99
# Getting Started with Victory Native
1010

11-
> These docs are for the legacy versions of Victory Native. If you're looking for Victory Native XL docs, please [see here]
12-
(https://formidable.com/open-source/victory-native/).
11+
> These docs are for the legacy versions of Victory Native. Victory Native XL is our rewrite of Victory Native designed specifically for React Native. Please [see here for more information]
12+
(https://formidable.com/open-source/victory-native/). If you would like to continue to use this version of Victory with React Native, follow the legacy guide below.
1313

1414
In this guide, we’ll show you how to get started with Victory Native and the React Native SVG dependency running in your React Native app for iOS and Android.
1515

@@ -22,7 +22,7 @@ Victory Native is compatible with React Native 0.50 or higher.
2222
To add Victory Native to your React Native app install `victory-native`.
2323

2424
```bash
25-
$ yarn add victory-native # or npm install --save victory-native
25+
$ yarn add victory-native@legacy # or npm install --save victory-native@legacy
2626
```
2727

2828
#### 2. Add React Native SVG to your app

packages/victory-native/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Install victory-native:
88
```sh
9-
$ npm install victory-native --save
9+
$ npm install victory-native@legacy --save
1010
```
1111

1212
Install react-native-svg:
@@ -96,4 +96,3 @@ Please review our [Code of Conduct][code] before contributing.
9696
[victory-native-demo]:https://github.com/FormidableLabs/victory-native-demo
9797
[react-native-svg-readme]: https://github.com/react-native-community/react-native-svg#notice
9898
[maintenance-image]: https://img.shields.io/badge/maintenance-active-green.svg
99-

packages/victory-native/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
"react": ">=16.6.0"
6666
},
6767
"publishConfig": {
68-
"provenance": true
68+
"provenance": true,
69+
"tag": "legacy"
6970
},
7071
"scripts": {
7172
"build": "wireit",

packages/victory/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ Projects using Victory should also depend on [React][] and [prop-types][].
3838

3939
## Victory Native
4040

41-
Want to use `Victory` with React Native? Check out [victory-native](https://github.com/FormidableLabs/victory-native)
42-
Victory Native shares most of its code with Victory, and has a nearly identical api!
41+
Want to use `Victory` with React Native? Check out [victory-native-xl](https://github.com/FormidableLabs/victory-native-xl)
42+
43+
If you would like to use this version of `Victory` with React Native, you can install the legacy version using the `legacy` npm tag. See the [available versions in npm](https://www.npmjs.com/package/victory-native?activeTab=versions).
4344

4445
## [Contributing](CONTRIBUTING.md)
4546

0 commit comments

Comments
 (0)