Reactylon Native
System Requirements
- Node.js >=18 or later.
- macOS, Windows (including WSL), and Linux are supported.
- Watchman
- Android Device Bridge (Android)
- Xcode (iOS)
Automatic Installation
It is recommended starting a new Reactylon Native app using create-reactylon-app
, which sets up everything automatically for you. The project is built with React 18 and React Native 0.74.2. To create a project, run:
npx create-reactylon-app MyApp --native
create-reactylon-app
will create a folder named MyApp with your project name and install the required dependencies. If everything went as expected, you should see an output like the following:
✔ Creating a new Reactylon Native app in MyApp.
✔ Installing packages. This might take a couple of minutes.
Reactylon Native app successful created.
Your file system will contain a new folder named MyApp and it will look like this:
- App.tsx
- Content.tsx
- .eslintrc.js
- .gitignore
- .prettierrc.js
- .watchmanconfig
- app.json
- babel.config.js
- Gemfile
- index.js
- jest.config.js
- metro.config.js
- package-lock.json
- package.json
- README.md
- tsconfig.json
Now move on MyApp folder and start Metro development server:
cd MyApp
npm start
Let Metro Bundler run in its own terminal. Open a new terminal inside your Reactylon Native project folder and follow the guide for Android or iOS.
Be sure that ADB debugging is enabled on your device.
To launch the app on your Android device, execute the following command:
npm run android
Regardless of your platform, you should see an output similar to the following:
To ensure proper functionality, Reactylon Native requires that dependencies be forcefully installed. Therefore, each time you need to reinstall initial dependencies, use the command npm install --force
.