@alzow

Как реализовать login через facebook в react-native приложении?

Пытаюсь реализовать вход через фейсбук в своем пет-проекте, делал все по инструкции:
отсюда
и отсюда

В итоге получаю ошибку:
Invariant Violation: Invariant Violation: Invariant Violation: requireNativeComponent: "RCTFBLoginButton" was not found in the UIManager.

This error is located at:
    in RCTFBLoginButton (at FBLoginButton.js:112)
    in n (at FBLoginButton.js:9)
    in RCTView (at View.js:45)
    in n (at SignInScreen.js:34)
    in RCTView (at View.js:45)
    in RCTScrollView (at ScrollView.js:977)
    in ScrollView (at KeyboardAwareHOC.js:397)
    in S (at Content.js:125)
    in u (at connectStyle.js:384)
    in Styled(u) (at SignInScreen.js:26)
    in RCTView (at View.js:45)
    in s (at connectStyle.js:384)
    in Styled(s) (at SignInScreen.js:25)
    in t (at SceneView.js:9)
    in f (at StackViewLayout.js:478)
    in RCTView (at View.js:45)
    in RCTView (at View.js:45)
    in RCTView (at View.js:45)
    in v (at screens.js:51)
    in h (at StackViewCard.js:42)
    in n (at createPointerEventsContainer.js:26)
    in h (at StackViewLayout.js:507)
    in RCTView (at View.js:45)
    in l (at StackViewLayout.js:401)
    in RCTView (at View.js:45)
    in h (at withOrientation.js:30)
    in v (at StackView.js:49)
    in RCTView (at View.js:45)
    in h (at StackView.js:19)
    in v (at createNavigator.js:57)
    in b (at createKeyboardAwareNavigator.js:11)
    in v (at createNavigationContainer.js:376)
    in b (at SceneView.js:9)
    in f (at SwitchView.js:12)
    in p (at createNavigator.js:57)
    in b (at createNavigationContainer.js:376)
    in b (at App.js:33)
    in RCTView (at View.js:45)
    in RCTView (at View.js:45)
    in f (at connectStyle.js:384)
    in Styled(f) (at App.js:29)
    in l (at App.js:28)
    in b (at registerRootComponent.js:17)
    in c (at registerRootComponent.js:16)
    in o (at renderApplication.js:34)
    in RCTView (at View.js:45)
    in RCTView (at View.js:45)
    in p (at renderApplication.js:33)

This error is located at:
    in b (at SceneView.js:9)
    in f (at SwitchView.js:12)
    in p (at createNavigator.js:57)
    in b (at createNavigationContainer.js:376)
    in b (at App.js:33)
    in RCTView (at View.js:45)
    in RCTView (at View.js:45)
    in f (at connectStyle.js:384)
    in Styled(f) (at App.js:29)
    in l (at App.js:28)
    in b (at registerRootComponent.js:17)
    in c (at registerRootComponent.js:16)
    in o (at renderApplication.js:34)
    in RCTView (at View.js:45)
    in RCTView (at View.js:45)
    in p (at renderApplication.js:33)

This error is located at:
    in b (at App.js:33)
    in RCTView (at View.js:45)
    in RCTView (at View.js:45)
    in f (at connectStyle.js:384)
    in Styled(f) (at App.js:29)
    in l (at App.js:28)
    in b (at registerRootComponent.js:17)
    in c (at registerRootComponent.js:16)
    in o (at renderApplication.js:34)
    in RCTView (at View.js:45)
    in RCTView (at View.js:45)
    in p (at renderApplication.js:33)
- node_modules/react-native/Libraries/ReactNative/getNativeComponentAttributes.js:29:18 in exports
- node_modules/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js:104:17 in get
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:3955:53 in Vr
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:13218:12 in Wc
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:15670:10 in Zf
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:15880:30 in ed
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:15892:41 in td
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:15996:15 in nd
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:16976:17 in $d
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:16877:24 in Qd
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:16838:14 in Yd
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:16703:4 in jd
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:16504:16 in sd
- node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js:8481:17 in enqueueSetState
- node_modules/react/cjs/react.development.js:372:31 in setState
- node_modules/react-navigation/src/createNavigationContainer.js:342:13 in dispatch
- node_modules/react-navigation/src/getChildNavigation.js:56:33 in <unknown>
* screens/AuthLoadingScreen.js:18:35 in <unknown>
- node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:62:44 in k
- node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js:288:30 in <unknown>
- ... 13 more stack frames from framework internals
  • Вопрос задан
  • 90 просмотров
Пригласить эксперта
Ответы на вопрос 2
raoffonom
@raoffonom
React Native Developer
Попробуйте пересоберать проект.
Ответ написан
@davidnum95
Ошибка говорит, что не может найти нативный модуль. Судя по всему вы настроили только для андроида, это тоже сделали?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
Acme Crypto Corp Нижний Новгород
от 120 000 до 200 000 руб.
Growire Solutions Санкт-Петербург
от 60 000 до 100 000 руб.