Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6290

Using NativeWind With React Native Paper

$
0
0

I am using native wind and react native paper with typescript. I would like to add "className" and "tw" attributes to my paper views.

I've already added it on my other views using declares like this:

import "react-native";declare module "react-native" {  interface FlatListProps<ItemT> extends VirtualizedListProps<ItemT> {    className?: string;    tw?: string;  }}

and my views have "className" and "tw", but for paper views this does not work:

import "react-native-paper"declare module "react-native-paper" {    interface FABProps {        className? : string;        tw?: string;    }}

and my FAB view still does not have "className" or "tw"

How can I fix this?


Viewing all articles
Browse latest Browse all 6290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>