Skip to content

Actionsheet options doesn't support labelStyle #2550

Closed
@wolfzer44

Description

@wolfzer44

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-ui-lib@7.2.4 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-ui-lib/src/components/actionSheet/index.js b/node_modules/react-native-ui-lib/src/components/actionSheet/index.js
index 0d48348..738b639 100644
--- a/node_modules/react-native-ui-lib/src/components/actionSheet/index.js
+++ b/node_modules/react-native-ui-lib/src/components/actionSheet/index.js
@@ -85,7 +85,7 @@ class ActionSheet extends Component {
     }} height={48} key={index} testID={option.testID} onPress={() => this.onOptionPress(index)} activeBackgroundColor={Colors.grey80}>
         <View row paddingL-16 flex centerV>
           {this.handleRenderIcon(option)}
-          <Text text70 grey10 numberOfLines={1}>
+          <Text text70 grey10 numberOfLines={1} style={[option.labelStyle]}>
             {option.label}
           </Text>
         </View>

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions