@@ -53,8 +53,7 @@ const MyComponent = () => (
53
53
- [ RN-Only Additions] ( #rn-only-additions )
54
54
- [ JIT-style Arbitrary Values] ( #jit-style-arbitrary-values )
55
55
- [ VS Code Intellisense] ( #vs-code-intellisense )
56
- - [ Migrating from V2] ( #migrating-from-v2 )
57
- - [ Migrating from V1] ( #migrating-from-v1 )
56
+ - [ Migrating from previous versions] ( #migrating-from-previous-versions )
58
57
- [ Prior Art] ( #prior-art )
59
58
60
59
## Installation
@@ -453,48 +452,9 @@ for VS Code.
453
452
More detailed instructions, including how to add snippets, are available
454
453
[ here] ( https://github.com/jaredh159/tailwind-react-native-classnames/discussions/124 ) .
455
454
456
- ## Migrating from V2
455
+ ## Migrating from Previous Versions
457
456
458
- ** Color renames** . In line with the
459
- [ upgrade guide] ( https://tailwindcss.com/docs/upgrade-guide#removed-color-aliases ) ,
460
- tailwind v3 has mapped ` green ` , ` yellow ` , and ` purple ` to their extended colors.
461
- Additionally,
462
- [ gray colors] ( https://tailwindcss.com/docs/upgrade-guide#renamed-gray-scales ) were renamed
463
- in the extended colors to be more specific. Both of these can be resolved by following
464
- tailwind's upgrade guide and optionally re-aliasing the colors in your
465
- ` tailwind.config.js ` .
466
-
467
- Other than checking on any changes caused by color renames in tailwindcss, there are no
468
- breaking changes in V3 of this library, no further changes should be necessary.
469
-
470
- New v3 prefixes and classes are being added as we identify use cases. If you do have a
471
- feature that would help your development, please
472
- [ open an issue] ( https://github.com/jaredh159/tailwind-react-native-classnames/issues/new )
473
- and include any libraries / hooks that could help someone in the community put a PR
474
- together.
475
-
476
- ## Migrating from V1
477
-
478
- ** 1.** During the rewrite, the package name on npm was changed to ` twrnc ` . To remove the
479
- old library and install v2, run:
480
-
481
- ```
482
- npm uninstall tailwind-react-native-classnames
483
- npm install twrnc
484
- ```
485
-
486
- ** 2.** Grep through your project replacing ` from 'tailwind-react-native-classnames' ` with
487
- ` from 'twrnc' ` .
488
-
489
- ** 3.** If you were using a ` tailwind.config.js ` you can ` git rm ` your ` tw-rn-styles.json `
490
- file, and switch to passing your config directly to ` create ` as shown below: (details
491
- [ here] ( #customization ) )
492
-
493
- ``` js
494
- const tw = create (require (` ../../tailwind.config.js` ));
495
- ```
496
-
497
- That's it! 🎉 The core API and functionality should work exactly the same from v1 to v2.
457
+ See [ migration-guide.md] ( /migration-guide.md ) .
498
458
499
459
## Prior Art
500
460
0 commit comments