tailwind-rn - Vue Native JavaScript
Since vue-native is based on react-native I was wondering if this will work? Does it need extra configuration?
Thank you
Asked Oct 07 '21 00:10
mstroiu
1 Answer:
Solved!
You can use it like this:
<template>
<view :style="tailwind('bg-red-300')">
<text class="text-color-primary">{{ message }}</text>
</view>
</template>
<script>
import tailwind from 'tailwind-rn';
export default {
data() {
return {
message: "Hello World"
};
},
created() {
this.tailwind = tailwind
}
};
</script>
1
Answered Apr 14 '21 at 10:46
mstroiu
Read next
- [Bug] Remote Config: Setting MinimumFetchInternalInMilliseconds does not work as expected - quickstart-unity
- LightGBM [R Package] autoconf.ac OpenMP test ignores LDFLAGS (fix provided). - Cplusplus
- bind EINVAL on valid IPv6 Address (IPv4 works fine!) - JavaScript node
- Nightly builds - logisim-evolution Java
- darktable Crash Report C
- joint Rappid visio import Link vertices - JavaScript
- iOS 13 requires new headers to the APNS - Ruby houston
- after.js css problem with after.js - JavaScript