I am facing this same error in latest version of react native 0.76 from node module packages many libraries some are shared as reference
C/C++: /Users/g/Desktop/nextfriend076/new/nextfriend/node_modules/react-native-svg/android/build/generated/source/codegen/jni/react/renderer/components/rnsvg/EventEmitters.cpp:39:3: warning: '$' in identifier [-Wdollar-in-identifier-extension] C/C++: $payload.setProperty(runtime, "source", source); C/C++: ^ C/C++: /Users/g/Desktop/nextfriend076/new/nextfriend/node_modules/react-native-svg/android/build/generated/source/codegen/jni/react/renderer/components/rnsvg/EventEmitters.cpp:41:12: warning: '$' in identifier [-Wdollar-in-identifier-extension] C/C++: return $payload;