React-native-ui-kitten: Remove Padding From Card body Component

Created on 18 Apr 2020  路  3Comments  路  Source: akveo/react-native-ui-kitten

馃挰 Question

Hello,
I am using the Card component and want to remove the padding of the card which is(paddingHorizontal:24, paddingVertical:16), But I am unable to do this. I lookup doc but found nothing.
Is there any way to change card Paddings?
Thanks,
Sarmad

UI Kitten and Eva version

| Package | Version |
| ----------- | ----------- |
| @eva-design/eva | 1.4.0 |
| @ui-kitten/components | 4.4.1 |

Help wanted Duplicate

All 3 comments

It was discussed multiple times:

  • #1020
  • #1011
  • #1002

What the @DanteVR suggests is an "official way"

I have done multiple mapping for font-family and card

{
  "strict": {
    "text-font-family": "Ubuntu-Regular"
  },
  "components": {
    "Card": {
      "appearances": {
        "outline": {
          "mapping": {
            "bodyPaddingHorizontal": -16,
            "bodyPaddingVertical": -16
          }
        }
      }
    }
  }
}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nonameolsson picture nonameolsson  路  3Comments

RWOverdijk picture RWOverdijk  路  3Comments

bkwhite picture bkwhite  路  3Comments

ugurozturk picture ugurozturk  路  4Comments

simonsankar picture simonsankar  路  3Comments