arochedy / react-native-check-new-archi

16 stars 0 forks source link

Check New Architecture Support

This package checks if the libraries used in a React Native project support the new architecture. It leverages the React Native Directory API to verify compatibility and, if not listed, analyzes the GitHub repository for any native dependencies.

Features

Installation

Install globally via npm:

npm install -g rn-chk-new-arch

Or run directly with npx:

npx rn-chk-new-arch

Usage

Run the package in the root directory of your React Native project to check each library's compatibility with the new architecture:

npx rn-chk-new-arch
3 libraries found

Checking libraries...

Library: react-navigation, supports new architecture: true
Library: axios, supports new architecture: false
Library: my-custom-lib, not found
...
--- Statistics ---
Total: 3 | Supported: 1 | Not Supported: 1 | Not Found: 1
```bash

Contributing

Contributions are welcome! If you'd like to improve the package or add new features, please fork the repository and create a pull request.

Test the library

npm run test

Development

To download and modify the code:

git clone https://github.com/arochedy/react-native-check-new-archi.git
npm run build
npm run build
npm run start

License

This project is licensed under the MIT License.