Skip to content

Can I use RNPaper together with NativeWind in a React Native project?Β #3930

@kabeza

Description

@kabeza

Hi
I've been using RNPaper for some days and am enjoying its components
Now I had to create a globalStyles module/component so I can use (for example) a marginBottom:10 style between all the cards in a FlatList without giving style={{}} to each one and having TypeScript complain

...
<Card mode="outlined" theme={{roundness: 4}} style={globalStyles.mb10}>
  <Card.Content>
    <View>
      <Text variant="titleLarge">My Title</Text>
    </View>
  </Card.Content>
</Card>
...

So now I'm considering something like NativeWind to speed-up the layout/ui creation
https://www.nativewind.dev/

Would there be any problem if I mix both libraries? Specially the border, opacity, color classes?
Thanks for any tip you can give me

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion related to the library, not an issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions