Skip to content

TabScreen icon size issue #92

@ecosensors

Description

@ecosensors

Hi, I am using react-native-paper-tabs and it work fine excepted for this

Current behaviour

I run iPhone and the iPad simulator and the size of the icon is very small at the iPad screen, may be bacuse of the resolution.

I can adjust the font size and the image, but the icon of the tab view is not adjusting

Expected behaviour

The icon size should not be smaller than the text

How to reproduce?

run the command 'npx run ios' and open the iphone and the largest iPad simulator

<TabScreen 
                                        key={d.id_sensor} 
                                        label={""} 
                                        icon={d.sensor_type_awe}
                                        //optional props
                                        //badge={true} // only show indicator
                                        // badge="text"
                                        // badge={1}
                                        // onPressIn={() => {
                                        //   console.log('onPressIn explore');
                                        // }}
                                        // onPress={() => {
                                        //   console.log('onPress explore');
                                        // }}
                                    >

Your Environment

software version
ios 17.2
android x
react-native 0.79.5
react-native-paper latest
node 22.16
npm or yarn 11.4.2
expo sdk 53.0.20

Question

Is there a way to choose the size of the icons? (according to the device or not?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions