Chip styles
See original GitHub issueCurrent 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)
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:
- Created 2 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, I will be working on the fix in the upcoming days!
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.