Skip to content

Cannot build for ios RNScreen v4.11 #2956

@emmanuel-nike

Description

@emmanuel-nike

Description

I constantly get these errors

/Users/username/workspace/appName/node_modules/react-native-screens/ios/RNSScreenStackHeaderConfig.mm:39:49 Constexpr variable 'DEFAULT_TITLE_FONT_SIZE' must be initialized by a constant expression

/Users/username/workspace/appName/node_modules/react-native-screens/ios/RNSScreenStackHeaderConfig.mm:40:55 Constexpr variable 'DEFAULT_TITLE_LARGE_FONT_SIZE' must be initialized by a constant expression

Can anyone kindly help out? I cannot seem to find out why this is happening

react-native v0.76.9 react-native-screens v4.11.1 All react native navigation libraries are at the latest version as at the time of this post.

I have cleared/reinstalled pod, cleared derived data, cleaned project and rebuilt and still get the error. It only builds fine when I downgrade react-native-screens to v3.35.0

Steps to reproduce

  1. Install the latest version of react-native screens
  2. Navigate to the ios directory and run pod install
  3. Attempt a build from xcode or run ios build from the command line.

Snack or a link to a repository

None

Screens version

4.11.1

React Native version

0.76.9

Platforms

iOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

Labels

missing-reproThis issue need minimum repro scenarioplatform:iosIssue related to iOS part of the library

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions