-
-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of undeclared identifier 'ShadowNodeWrapper'; did you mean 'shadowNodeWrapper'? #3023
Labels
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
I have the same error, but for android
|
same with 2.18.0 version |
Merged
Hi! Thanks for reporting this issue, could you please check if #3024 helps? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I have installed 2.18.0 version of react-native-gesture-handler and i am getting this issue while building the ios app in new architecture enabled.
Use of undeclared identifier 'ShadowNodeWrapper'; did you mean 'shadowNodeWrapper'?
Replace 'ShadowNodeWrapper' with 'shadowNodeWrapper'
Variable 'shadowNodeWrapper' declared with deduced type 'auto' cannot appear in its own initializer
the error is pointing here.
#ifdef
RCT_NEW_ARCH_ENABLEDvoid decorateRuntime(jsi::Runtime &runtime)
{
auto isFormsStackingContext = jsi::Function::createFromHostFunction(
runtime,
jsi::PropNameID::forAscii(runtime, "isFormsStackingContext"),
1,
[](jsi::Runtime &runtime, const jsi::Value &thisValue, const jsi::Value *arguments, size_t count) -> jsi::Value {
if (!arguments[0].isObject()) {
return jsi::Value::null();
}
runtime.global().setProperty(runtime, "isFormsStackingContext", std::move(isFormsStackingContext));
}
#endif // RCT_NEW_ARCH_ENABLED.
`
Steps to reproduce
Snack or a link to a repository
private repo
Gesture Handler version
2.18.0
React Native version
0.74.4
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
iPhone 15 Pro simulator
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: