Open erdemildiz opened 5 years ago
This is caused by this commit in react-native. Apparently sendInputWithEventName
was a deprecated method, and was removed on 0.60.0
same problem!
This issue seems to have been open for a while, but not fixed yet: https://github.com/facebook/react-native-fbsdk/issues/479
same issue !
same issue!
Same issue here. Does anyone know if sendInputWithEventName
was changed by another method or something?
The master branch of this repository already contains the updated code
The master branch of this repository already contains the updated code
How do I download this patch?
The master branch of this repository already contains the updated code https://github.com/facebook/react-native-fbsdk/blob/master/ios/RCTFBSDK/login/RCTFBSDKLoginButtonManager.m#L60-L88
How do I download this patch?
You can run yarn add git+https://github.com/facebook/react-native-fbsdk.git Hope this can help you.
I can confirm that using master branch works. Thanks @concuacon !
Hi @danfri86, I updated to the latest master and then I start to get header errors that
'React/RCTBridgeModule.h' file not found
under RCTFBSDK, any idea how could solve this?
@lawrencehui The steps I did to get it running was:
yarn add git+https://github.com/facebook/react-native-fbsdk.git
from project root.cd ios/ && pod install && cd ..
That's all I needed if I remember correct. Hope it works for you as well. If you're building the project in xcode make sure to open
after trying from project root i am facing other error
'React/RCTComponentEvent.h' file not found
using React Native 0.60.0. I also tried 0.60.3 as well.
Anyone has this as well after trying @danfri86 suggestion ?
after trying from project root i am facing other error
'React/RCTComponentEvent.h' file not found
using React Native 0.60.0. I also tried 0.60.3 as well.
Anyone has this as well after trying @danfri86 suggestion ?
ya I have actually spent like two nights to figure out the steps that @danfri86 suggested and confirmed it works.
for react-native-fbsdk, make sure you are using the latest branch (1.00-rc5)
after trying from project root i am facing other error
'React/RCTComponentEvent.h' file not found
using React Native 0.60.0. I also tried 0.60.3 as well. Anyone has this as well after trying @danfri86 suggestion ?ya I have actually spent like two nights to figure out the steps that @danfri86 suggested and confirmed it works.
for react-native-fbsdk, make sure you are using the latest branch (1.00-rc5)
Yeah i tried that as well, I also tried older rc versions to see if the latest was giving me the error.
Both rc versions and @danfri86 suggestion give me the same error
React/RCTComponentEvent.h' file not found
after trying from project root i am facing other error
'React/RCTComponentEvent.h' file not found
using React Native 0.60.0. I also tried 0.60.3 as well. Anyone has this as well after trying @danfri86 suggestion ?ya I have actually spent like two nights to figure out the steps that @danfri86 suggested and confirmed it works. for react-native-fbsdk, make sure you are using the latest branch (1.00-rc5)
Yeah i tried that as well, I also tried older rc versions to see if the latest was giving me the error.
Both rc versions and @danfri86 suggestion give me the same error
React/RCTComponentEvent.h' file not found
I also encountered this error before, have you also check inside Build Phases, there are no other items under Link Binary With Libraries except libPods-xxxxx.a (xxxx is your app name)
same issue!
after trying from project root i am facing other error 'React/RCTComponentEvent.h' file not found using React Native 0.60.0. I also tried 0.60.3 as well. Anyone has this as well after trying @danfri86 suggestion ?
ya I have actually spent like two nights to figure out the steps that @danfri86 suggested and confirmed it works. for react-native-fbsdk, make sure you are using the latest branch (1.00-rc5)
Yeah i tried that as well, I also tried older rc versions to see if the latest was giving me the error.
Both rc versions and @danfri86 suggestion give me the same error
React/RCTComponentEvent.h' file not found
I also encountered this error before, have you also check inside Build Phases, there are no other items under Link Binary With Libraries except libPods-xxxxx.a (xxxx is your app name)
I'm seeing React/RCTComponentEvent.h' file not found
as well.
@lawrencehui What do you mean by making sure there are no other items under Link Binary With Libraries? I have various frameworks and a libRCTPushNotification.a
file in there. Is that not okay?
React Native: 0.60.3 react-native-fbsdk: 1.0.0-rc.5 Facebook SDK: 5.2.1 Xcode: 10.2.1 node: 12.5.0
I'm seeing
React/RCTComponentEvent.h' file not found
as well.@lawrencehui What do you mean by making sure there are no other items under Link Binary With Libraries? I have various frameworks and a
libRCTPushNotification.a
file in there. Is that not okay?React Native: 0.60.3 react-native-fbsdk: 1.0.0-rc.5 Facebook SDK: 5.2.1 Xcode: 10.2.1 node: 12.5.0
I have not used the libRCTPushNotification library before, but since React 0.60.0^ supports automatic linking, you should now no need to use the link command in order to link your library. All additional libraries should be installed through Pods.
and under Link Binary With Libraries should only see libPods-[yourappname].a only.
For me it was the same issue that I described here. In short it was autolinking that was added in RN 0.60.0
and requires you to manually unlink any dependencies that you previously had:
npx react-native unlink react-native-fbsdk
cd ios
pod install
Mine was as @lawrencehui suggested--I had to remove my libRCTPushNotification.a
from Link Binary with Libraries and add it to my podfile. Maybe this was obvious but I didn't know to link local React libraries in my podfile:
pod 'React-RCTPushNotification', :path => '../node_modules/react-native/Libraries/PushNotificationIOS'
Thank you @danfri86, your specified method is what's currently working correctly with
react-native 0.60.3
@danfri86 's method worked for me, Thanks!
I think yarn add git+https://github.com/facebook/react-native-fbsdk.git
did the magic for me 😀
check this out . you need to unlink the fbsdk as react native 0.60 offers autolink.
I was receiving the same error, after upgrading react-native from 0.59.8 to 0.60.5 After updating react-native-fbsdk in package.json from 0.10.1 to 1.0.3, a npm install & pod install later, the error is gone.
During the process I cleaned deriveddata folder in XCode.
HI! I currently have the same issue using "react-native": "0.60.5"
and "react-native-fbsdk": "1.0.4"
.
None of the proposed solutions worked, but oddly enough if I download manually an archive from GItHub (either 1.0.3
, 1.0.4
or master
) and drop it in the node_modules/react-native-fbsdk/
directory, it works.
So my current workaround is to run this command from my project's root folder whenever I change anything in its dependencies:
curl -sSL https://github.com/facebook/react-native-fbsdk/archive/master.zip > /tmp/rnfbsdk-master.zip && \
unzip -q /tmp/rnfbsdk-master.zip && \
rm -fr /tmp/rnfbsdk-master.zip ./node_modules/react-native-fbsdk && \
mv ./react-native-fbsdk-master ./node_modules/react-native-fbsdk
HTH
@janicduplessis @dzhuowen Looks like many people facing this any plan to release on NPM Also?
__deprecated_msg("Use RCTDirectEventBlock or RCTBubblingEventBlock instead");
said, I think it is better to use RCTDirectEventBlock or RCTBubblingEventBlock instead to fix this bug
and, as a reference, this issue discussed how to do with that
I upgrade RN version to 0.59 to 0.60 and I am getting below error on Xcode build.
RCTFBSDK/login/RCTFBSDKLoginButtonManager.m:71:32: No visible @interface for 'RCTEventDispatcher' declares the selector 'sendInputEventWithName:body:'