Skip to content

Commit 3d33923

Browse files
update: v1.1.0 to add NativeWind configurations
1 parent 0360992 commit 3d33923

File tree

118 files changed

+1695
-306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+1695
-306
lines changed

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [1.1.0] - 2024-12-15
6+
7+
### New Features
8+
9+
- **NativeWind Integration**: You can now easily integrate NativeWind for styling, making it quicker to set up Tailwind-like utilities in your React Native project.
10+
- **React Native Version Selection**: Added the ability to choose the React Native version during project setup. Specify your preferred version, and react-native-lab will handle the rest!
11+
12+
### Improvements
13+
14+
- Streamlined setup prompts for a more intuitive user experience.
15+
- Minor fixes to ensure better compatibility across different devices and environments.
16+
17+
### Existing Features
18+
19+
- Install JDK and Android Studio (if not already installed).
20+
- Automatically set up environment variables.
21+
- Create an `src` folder (optional).
22+
- Add import aliases for cleaner code.
23+
- Predefined templates for starting new projects: Blank, Bottom Navigation, Drawer Navigation, and Stack Navigation.
24+
25+
---
26+
27+
## [1.0.4] - 2024-12-15
28+
29+
### Changes
30+
31+
- **Regex Update for Project Naming Validation:**
32+
- Users can now only use **letters**, **underscores (`_`)**, and **hyphens (`-`)** in project names.
33+
- **Numbers** and other special characters are no longer allowed to ensure consistent and predictable project naming conventions.
34+
35+
#### Why This Change?
36+
37+
This update improves compatibility and avoids potential issues with tools or file systems that may not handle special characters well.
38+
39+
For earlier versions, see the [GitHub Releases](https://github.com/developer-sumit/react-native-lab/releases).

README.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,36 @@ This project is inspired by the simplicity and effectiveness of [create-next-app
3636
- **Installs Android Studio**: Sets up Android Studio, including the necessary SDKs and tools.
3737
- **Sets Environment Variables**: Configures system environment variables such as `ANDROID_HOME`, `ANDROID_SDK_ROOT`, and `JAVA_HOME`.
3838
- **Pre-built Templates**: Choose from a variety of pre-built templates to kickstart your React Native project.
39-
- **Customizable Configuration**: Allows you to customize the project setup according to your preferences.
40-
- **Cross-Platform Support**: Works on Windows, macOS, and Linux.
41-
- **Environment Setup**: Optionally sets up a `.env` file for managing environment variables.
42-
- **Navigation Setup**: Optionally sets up React Navigation in your project.
39+
- `Blank`
40+
- `Bottom Navigation`
41+
- `Drawer Navigation`
42+
- `Stack Navigation`
43+
- **Project Structure**: Creates an `src` folder for you.
44+
- **Cross-Platform Support**: Works on `Windows`, `macOS`, and `Linux`.
45+
- **Environment Setup**: Sets up a `.env` file for managing environment variables.
46+
- **Navigation Setup**: Sets up React Navigation in your project.
4347
- **Alias Configuration**: Configures path aliases for cleaner and more manageable imports.
48+
- **NativeWind Integration**: Install and configure NativeWind for styling.
49+
- **React Native Version Selection**: Allows you to set up the project with your preferred React Native version.
4450

4551
<h2 id="screenshots" style="text-align: center;">📸 Screenshots</h2>
4652

4753
Here are the available templates you can use with `react-native-lab`:
4854

49-
![Setup](./images/setup-1.png)
50-
![Setup](./images/setup-2.png)
51-
52-
<div style="display: flex; gap: 20px;">
55+
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px;">
5356
<div style="text-align: center;">
5457
<h4>Blank Template</h4>
55-
<img src="./images/blank-template.png" alt="Blank Template" style="width: 300px; border-radius: 10px;">
58+
<img src="./images/blank-template.png" alt="Blank Template" style="width: 100%; border-radius: 10px;">
5659
</div>
5760
<div style="text-align: center;">
5861
<h4>Navigation Template</h4>
59-
<img src="./images/navigation-template.png" alt="Navigation Template" style="width: 300px; border-radius: 10px;">
62+
<img src="./images/navigation-template.png" alt="Navigation Template" style="width: 100%; border-radius: 10px;">
6063
</div>
6164
</div>
6265

6366
<h2 id="prerequisites" style="text-align: center;">⚙️ Prerequisites</h2>
6467

65-
- Node.js (v14 or higher)
68+
- Node.js (v18 or higher)
6669
- npm (v6 or higher)
6770

6871
<h2 id="getting-started" style="text-align: center;">🏁 Getting Started</h2>
@@ -111,3 +114,7 @@ Please make sure to follow the project's coding guidelines and standards.
111114
<h2 id="license" style="text-align: center;">📜 License</h2>
112115

113116
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
117+
118+
<h2 id="changelog" style="text-align: center;">📜 Changelog</h2>
119+
120+
For a detailed list of changes and updates, please refer to the [Changelog](./CHANGELOG.md).
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# 🚀 Announcing react-native-lab v1.1.0
2+
3+
Hello React Native developers! 👋
4+
5+
I'm excited to share the **v1.1.0 release** of **react-native-lab**, an npm package designed to simplify the setup process for **React Native CLI projects**. If you've ever wanted a hassle-free way to kickstart your projects, this tool is here to help!
6+
7+
---
8+
9+
## 🎉 What's New in v1.1.0?
10+
11+
### **NativeWind Integration**
12+
13+
- Easily integrate **NativeWind** for styling.
14+
- Enjoy a Tailwind-like utility-first CSS experience in your React Native projects.
15+
16+
### **Choose React Native Version**
17+
18+
- You can now set up your project with the **React Native version** of your choice.
19+
- Just specify the version during setup, and **react-native-lab** will handle the rest!
20+
21+
---
22+
23+
## 🌟 Existing Features
24+
25+
1. **Environment Setup Made Easy**
26+
27+
- Installs JDK and Android Studio (if not installed).
28+
- Automatically sets up environment variables.
29+
30+
2. **Flexible Project Structure**
31+
32+
- Option to create an `src` folder for better organization.
33+
- Adds **import aliases** to keep your code clean and maintainable.
34+
35+
3. **Starter Templates**
36+
37+
- Kickstart your project with predefined templates:
38+
- **Blank**
39+
- **Bottom Navigation**
40+
- **Drawer Navigation**
41+
- **Stack Navigation**
42+
43+
4. **Customization Options**
44+
- User-driven setup prompts ensure you only get what you need.
45+
46+
---
47+
48+
## 🤔 Why Use react-native-lab?
49+
50+
- Saves time by automating tedious setup tasks.
51+
- Makes React Native CLI development more beginner-friendly.
52+
- Offers a seamless starting experience similar to frameworks like Next.js but for React Native.
53+
54+
---
55+
56+
## 📥 Install Now
57+
58+
To create a new React Native CLI project:
59+
60+
```bash
61+
npx react-native-lab@latest
62+
```
63+
64+
## 💬 Feedback
65+
66+
This is just the beginning! Many more features are on the way, and your feedback matters a lot.
67+
Feel free to report issues, share suggestions, or contribute to the project.
68+
69+
Check it out on npm: [react-native-lab](https://npmjs.com/package/react-native-lab)
70+
71+
Let’s make React Native development faster and easier—together! 🙌
72+
73+
Happy coding! 🎉
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Welcome to the React Native Lab Community Discussions!
2+
3+
Hello everyone,
4+
5+
We are excited to announce the creation of our new Community Discussions page for the React Native Lab project! This space is dedicated to fostering open communication, collaboration, and support among all contributors and users of the project.
6+
7+
## What Can You Do Here?
8+
9+
- **Ask Questions**: If you have any questions about using React Native Lab, feel free to ask them here. Our community and maintainers are here to help!
10+
- **Share Ideas**: Have an idea for a new feature or improvement? Share it with the community and get feedback.
11+
- **Report Issues**: While we still encourage you to use GitHub Issues for bug reports, you can discuss potential issues here to get more context and support.
12+
- **Showcase Your Work**: Share how you are using React Native Lab in your projects. We'd love to see what you've built!
13+
- **Collaborate**: Find other contributors to collaborate with on new features, bug fixes, or other improvements.
14+
15+
## How to Get Started
16+
17+
1. **Join the Discussion**: Head over to the [Discussions page](https://github.com/developer-sumit/react-native-lab/discussions) and start participating in existing threads or create a new one.
18+
2. **Be Respectful**: Please remember to be respectful and considerate to others. We want this to be a welcoming space for everyone.
19+
3. **Stay on Topic**: Keep discussions relevant to React Native Lab and related topics.
20+
21+
We believe that this new Discussions page will help us build a stronger, more connected community. Thank you for being a part of React Native Lab, and we look forward to your contributions and discussions!
22+
23+
Best regards,
24+
25+
The React Native Lab Team

esbuild.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ function copyFiles(src, dest) {
2424
const __filename = fileURLToPath(import.meta.url);
2525
const __dirname = path.dirname(__filename);
2626

27-
const templateSource = path.resolve(__dirname, "templates");
27+
const templateSource = path.resolve(__dirname, "./src/templates");
2828
const templateDest = path.resolve(__dirname, "dist", "templates");
2929

30-
const scriptSource = path.resolve(__dirname, "scripts");
30+
const scriptSource = path.resolve(__dirname, "./src/scripts");
3131
const scriptDist = path.resolve(__dirname, "dist", "scripts");
3232

3333
build({

helpers/get-scripts.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

images/Poster-1.jpg

458 KB
Loading

images/Poster-2.jpg

367 KB
Loading

images/setup-1.png

-30 KB
Binary file not shown.

images/setup-2.png

-58.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)