tailwind-rn | 🦎 Use Tailwind CSS in React Native projects | Frontend Framework library
kandi X-RAY | tailwind-rn Summary
kandi X-RAY | tailwind-rn Summary
Use Tailwind CSS in React Native projects
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of tailwind-rn
tailwind-rn Key Features
tailwind-rn Examples and Code Snippets
Community Discussions
Trending Discussions on tailwind-rn
QUESTION
I followed all the steps of installing react-native-rn.
Everything worked fine at first, but when I moved input.css
to src/css/input.css
,it just generates src/css/tailwind.css
, but not the src/css/tailwind.json
file
I did modify the lines at package.json
so they look like this.
ANSWER
Answered 2022-Feb-25 at 23:09At the end of either command in package.json
you'll see they both have tailwind-rn
, basically what the command does is: take this file (tailwind.css) and compile it to (tailwind.json)
So, because you changed the path, default values (react-native-rn --input tailwind.css --output tailwind.json
) don't work.
Manually add at the end of the commands react-native-rn --input path/to/the/generated/css.css --output path/to/where/you/want/your/json.json
In this example, it this would be:
-i equals to --input, and -o to --ouput
QUESTION
here is the main app.js code for the same:
...ANSWER
Answered 2021-Oct-25 at 18:25The difference between onChange
and onChangeText
is that onChange receives an event object, and onChangeText receives only the text. So you are trying to setPriority(some event object) instead of setPriority(the priority that was typed in). Suggest using onChangeText for priority field too:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tailwind-rn
Install tailwind-rn.
Install Tailwind and concurrently.
Create Tailwind config and necessary files.
tailwind.config.js - Tailwind configuration file.
input.css - Entrypoint for Tailwind compiler. It's required to override the output of Tailwind, so that it doesn't generate CSS for resetting browser styles, which will cause tailwind-rn to fail.
Add scripts to build Tailwind styles in package.json.
Build Tailwind styles in watch mode.
tailwind.css - CSS generated by Tailwind.
tailwind.json - The same CSS, but converted into JSON, so that tailwind-rn can understand it.
Import TailwindProvider and tailwind.json in the root of your app and wrap the root of your app with it:
Use Tailwind in React Native!
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page