A collection of reusable React Native components for Expo projects, super charged with NativeWind. Once you have an expo project setup with NativeWind, you can use these components in place of the core React Native components and pass className props directly to style your components.
To install the package, run:
npm install expo-nativewind-components
yarn add expo-nativewind-components
Import the components you need from the package and use them in your project. Here's an example:
import React from "react";
import { StyledWindView, StyledWindText } from "expo-nativewind-components";
const App = () => {
return (
<StyledWindView className="h-screen w-full justify-center items-center">
<StyledWindText className="text-center text-2xl font-bold text-blue-500 mt-10">
Hello Awesome developers 👋🏽
</StyledWindText>
</StyledWindView>
);
};
export default App;
We welcome contributions! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (git checkout -b feature-branch).
- Make your changes.
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature-branch).
- Open a pull request.
Please make sure to update tests as appropriate.
To run the tests, use the following command:
npm run test
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any bugs or issues, please report them on the GitHub Issues page.
Created by Ibukun demehin.