Skip to content

[Bug]: Setup with RN 0.88 #4302

Description

@crutt

Mapbox Version

default

React Native Version

0.88.0-rc.3

Platform

iOS

@rnmapbox/maps version

10.3.5, main

Standalone component to reproduce

Existing versions of rnmapbox/maps and the current main branch are not compatible with the upcoming changes in react-native 0.88 due to changes to the react-native LayoutMetrics struct, which adds the fontSizeMultiplier field:

// ReactCommon/react/renderer/core/LayoutMetrics.h  (RN 0.88)
Rect frame;
EdgeInsets contentInsets{0};
EdgeInsets borderWidth{0};
DisplayType displayType{DisplayType::Flex};
PositionType positionType{PositionType::Relative};
LayoutDirection layoutDirection{LayoutDirection::Undefined};
bool wasLeftAndRightSwapped{false};
Float pointScaleFactor{1.0};
Float fontSizeMultiplier{1.0};   // <-- new in 0.88
EdgeInsets overflowInset{};

Observed behavior and steps to reproduce

No response

Expected behavior

No response

Notes / preliminary analysis

No response

Additional links and references

https://github.com/react/react-native/blame/changelog/v0.88.0-rc.3/packages/react-native/ReactCommon/react/renderer/core/LayoutMetrics.h#L45C5-L46C35

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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