Comments (3)
You can extract styles into a StyleSheet
just as you would without this module:
StyleSheet.create({
button: tailwind('bg-blue-200 text-blue-700')
})
from tailwind-rn.
Have you experienced any performance issues with this module? It's practically the same as just using built-in React Native styles.
from tailwind-rn.
@vadimdemedes I don't think there is a need for a plugin, but according to https://reactnative.dev/docs/stylesheet there are performance implications of flattening your stylesheet into an object because of loss of internal IDs for pushing information across the bridge. IIRC the performance for react native specifically is negligible as of version ~0.59 - though I can't find the specific documentation for that claim.
from tailwind-rn.
Related Issues (20)
- [question] how to custom the theme of app? HOT 1
- [question] how to set the root font size? HOT 1
- How to use tailwind imports with react native- can tailwind be shortened to tw HOT 1
- Custom classes missing some styles HOT 1
- Blur support
- Typescript error: Property 'children' does not exist on type 'IntrinsicAttributes & Props' (TailwindProvider) HOT 1
- Error: Failed to parse declaration "textDecorationLine: overline"
- Does this work?
- Is TailwindCSS component available with this library?
- Can we have space-between ? HOT 1
- Unsupported Tailwind class, not responding on rect native HOT 5
- Unable to see changes after installation HOT 1
- Fix children prop type HOT 2
- Custom theme unknown or invalid utility HOT 1
- Bug: 'taildinwcss@latest' is not in this registry. HOT 1
- Is it possible to use prettier-plugin-tailwindcss with tailwind-rn? HOT 2
- Support react-native 0.71 gap proprety HOT 2
- npx create-tailwind-rn has stopped woprking for v3.0.1 HOT 1
- Adding optional "children" property to the TailwindProvider interface, to avoid TypeScript error. HOT 3
- is it possible to use it in react native storybook?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwind-rn.