Skip to content

Changing Button Mode doesn't work dynamically (Expo 52)Β #4559

@dbrownstatsdraft

Description

@dbrownstatsdraft

Current behaviour

After upgrading to Expo 52 I can no longer change a button's mode attribute dynamically in iOS 18.1 simulator. Either programmatically or manually while developing. I must restart the app for the change to take effect when changing manually. It also appears that all styles are effected in this same way. If I update a style like margin it doesn't take effect until I either kill and restart the app or send a refresh signal via expo.

Expected behaviour

I should be able to change a Button's mode from "text" to "contained" and see the changes immediately in the app.

How to reproduce?

Create a new expo 52 app.
Create a react-native-paper (latest) button
Set button mode to "text"
Run in iOS 18.1 simulator
Change button mode to "contained" and save file
Look at button now. It will be in an in between state

Snack Link
Ensure Expo 52 and iOS or Android. Seems to work fine on Web but not iOS or Android.

Preview

Top button mode set to contained.
Image
After button press top button mode is set to text but wrapping container still has the fill color
Image

What have you tried so far?

Confirmed that downgrading expo to 51 works.

Your Environment

software version
ios 18.1
android latest
react-native 0.76.2
react-native-paper 5.12.5
node 22.11.0
npm or yarn 10.9.0
expo sdk 52.0.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions