question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Current behaviour

The size of the 3 chips in my example are shrink, we can’t see the text

Expected behaviour

The size of the 3 chips in my example should display a full height

Code sample

import * as React from 'react';
import { View, StyleSheet } from 'react-native';
import { Chip, List } from 'react-native-paper';

const ChipExample = () => {
  return (
    <>
      <List.Section title="Flat chip">
        <View style={styles.row}>
          <Chip selected onPress={() => { }} style={styles.chip}>
            Simple 1
          </Chip>
          <Chip selected onPress={() => { }} style={styles.chip}>
            Simple 2
          </Chip>
          <Chip selected onPress={() => { }} style={styles.chip}>
            Simple 3
          </Chip>
        </View>
      </List.Section>
    </>
  );
};

const styles = StyleSheet.create({
  row: {
    flexDirection: 'row',
    flexWrap: 'wrap',
    paddingHorizontal: 12,
  },
  chip: {
    margin: 4,
  },
});

export default ChipExample;

Screenshots (if applicable)

screenshot

What have you tried

Broken since 4.10.0, was working as expected in 4.9.2

Your Environment

software version
android 12
react-native 0.66.2
react-native-paper 4.10.0
node 16.13.0
npm 8.1.0
expo sdk no

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lukewalczakcommented, Nov 5, 2021

Thanks, I will be working on the fix in the upcoming days!

1reaction
jvincent-devcommented, Nov 5, 2021

Hello @root-io, please put your bug reproduction on snack

I added his code to a snack but changed the color of the Chip to make it more visible here

edit: having the same issue btw.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chips – Material Design 3
Chips represent options in a specific context, unlike buttons, which are persistent · There are four kinds of chips: Assist, filter, input, and...
Read more >
Chip API - Material UI - MUI
Rule name Global class Description root.MuiChip‑root Styles applied to the root element. avatar.MuiChip‑avatar Styles applied to the avatar element. icon.MuiChip‑icon Styles applied to the icon element....
Read more >
How To Create Contact Chips - W3Schools
Learn how to create contact chips with CSS. ... To close/hide the contact chip, add an element with an onclick event ... Next,...
Read more >
Style Chip - Knockout City Wiki - Fandom
Style Chips are consumable items used to hack additional customization styles on Outfits and Gloves. They can be gotten through Street Rank, League...
Read more >
chicago chips - Amazon.com
Munchie Box Jay's Original Potato Chips an Iconic Chicago Style Classic flavor thin Cut and Crispy (Pack of ( 6 ) 1.25 Oz...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found