react-native-segmented-control / segmented-control

React Native SegmentedControl library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New arch + RN 0.72.4 => MoreThanOneModuleRegistryCallsParserError

zabojad opened this issue · comments

I've just upgraded my project to RN 0.72.4 and running RCT_NEW_ARCH_ENABLED=1 bundle exec pod install gives the following error:

Node.js v18.13.0
Error: Command failed: node /Users/me/myproj/node_modules/@react-native/codegen/lib/cli/combine/combine-js-to-schema-cli.js --platform ios /var/folders/mc/2kyt0cbn12d95zcg5wzb0sj80000gn/T/SegmentedControlMmvHjU/schema.json /Users/me/myproj/node_modules/@react-native-segmented-control/segmented-control
/Users/me/myproj/node_modules/flow-parser/flow_parser.js:818
throw a}function
^

MoreThanOneModuleRegistryCallsParserError: Module NativeLinking: Every NativeModule spec file must contain exactly one NativeModule load. This file contains 2. Please simplify this spec file, splitting it as necessary, to remove the extraneous loads.