Skip to content

Remove StyleSheet.absoluteFillObject#2829

Open
zoontek wants to merge 2 commits intonecolas:masterfrom
zoontek:remove-absolute-fill-object
Open

Remove StyleSheet.absoluteFillObject#2829
zoontek wants to merge 2 commits intonecolas:masterfrom
zoontek:remove-absolute-fill-object

Conversation

@zoontek
Copy link
Contributor

@zoontek zoontek commented Mar 5, 2026

StyleSheet.absoluteFillObject was deprecated and has been removed in react-native 0.85.0-rc.0. This PR mirrors that removal to keep react-native-web in sync.

All internal usages have been migrated to StyleSheet.absoluteFill, which is functionally equivalent. Users who relied on absoluteFillObject to spread and customize styles should migrate to StyleSheet.absoluteFill.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 5, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 266d1d8:

Sandbox Source
react-native-web-examples Configuration

zoontek added a commit to expo/expo that referenced this pull request Mar 10, 2026
# Why

Align with latest React Native core version

# How

- Update package versions
  - `react-native  0.84.1 -> 0.85-rc.0`
  - `@react-native/normalize-colors 0.84.1 ->  0.85-rc.0`
  - `@react-native/babel-preset 0.84.1 -> 0.85-rc.0`
  - `@react-native/dev-middleware 0.84.1 -> 0.85-rc.0`
- Patch `@react-native/dev-middleware` (+ run `patch-package` in CI)
- Patch `react-native-svg`
- Update the `react-native-macos` patch
- Remove `StyleSheet.absoluteFillObject` usage - it has been removed
from core ([+ react-native-web
PR](necolas/react-native-web#2829))
- Install `@react-native/jest-preset` when required (it's not included
by default with `react-native`)
- Remove some obsolete "unsupported by Hermes" test cases
- Fix `expo-modules-core` headers path
- Fix `global.expo` initialization
- Fix `expo-video` fullscreen e2e test
- Fix `expo-go` build with Hermes v1

# Test Plan

- Bare Expo
- Minimal tester

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
-->

- [ ] I added a `changelog.md` entry and rebuilt the package sources
according to [this short
guide](https://github.com/expo/expo/blob/main/CONTRIBUTING.md#-before-submitting)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant