React-native-apple-authentication: how about react native 0.59

Created on 10 Dec 2019  路  16Comments  路  Source: invertase/react-native-apple-authentication

can you using react native < 0. 6 support please?

Most helpful comment

Hello, react-native 0.59.9 and 0.59.10 support Xcode 11.
i'm actually working on an react-native 0.59.9 app (on Xcode 11+) and I wanted to know if someone had managed to run this library with RN 0.59.9.
ps: i know that migrating to react-native 0.60 is important.. but i don't think we will got time to do this for April 2020..

All 16 comments

This is not and cannot be possible unfortunately.
It is not a policy decision ("we do not want to support that") it is a technical limitation.

Specifically:

  • Sign in with Apple requires ios13 or higher
  • Okay, then ios13 requires Xcode 11 or higher
  • Okay, Xcode 11 requires react-native 0.60 or higher

That is the chain of requirements

If you can find a way to make Xcode 11 + iOS 13 work with react-native 0.59 okay, but as far as I know they are incompatible, with no interest to work on them.

I sympathize. The move from 0.59 to 0.60 is not fun. Hopefully https://react-native-community.github.io/upgrade-helper/ can help, and jetifier (which I helped author: I really do sympathize with bridging this gap!) can help. But it's time to move I think, if you need apple sign in.

I'm closing this because of the reasons above but maybe there is a way for RN0.59 + Xcode 11 + iOS 13? If so we can reopen.

Hello, react-native 0.59.9 and 0.59.10 support Xcode 11.
i'm actually working on an react-native 0.59.9 app (on Xcode 11+) and I wanted to know if someone had managed to run this library with RN 0.59.9.
ps: i know that migrating to react-native 0.60 is important.. but i don't think we will got time to do this for April 2020..

@nicolasdet did you manage to run this library under RN 0.59.10 ?

This library works perfectly on RN 0.59, Xcode11, iOS13. we are using in our project.

@nhnam How you solve the issues in RNAppleAuthUtils.m file ?!

@nhnam How you solve the issues in RNAppleAuthUtils.m file ?!

Do you mention about this issue? https://github.com/invertase/react-native-apple-authentication/pull/50/files

This library works perfectly on RN 0.59, Xcode11, iOS13. we are using in our project.

Can you explain the manual installation flow? @nhnam @zumaawad

I mannaged to make work this library under RN 0.59.9

  • yarn add @invertase/react-native-apple-authentication
  • react-native link @invertase/react-native-apple-authentication
  • cd ios && pod install

Dont forget to make to make this part : Environment Setup

I confirm that with RN 0.59.4 it works ok, thanks @nicolasdet
At first when I saw 0.60 requirement I was upset since we needed apple login ASAP, but searching through issues get me better 鉂わ笍

I can confirm that this works for RN 0.59.9. I'm using Xcode 11.6, iOS 13.6 and version 1.1.2 of this library.

I can confirm that this works for RN 0.59.9. I'm using Xcode 11.6, iOS 13.6 and version 1.1.2 of this library.

Hello @BenAllenUK , do you have the step by step? Because I'm integrating in my project with

  • Xcode Version 11.6 (11E708)
  • React Native 0.59.9
  • Version 1.1.2

After react-native link @invertase/react-native-apple-authentication my app crash.

I saw this video https://www.youtube.com/watch?v=IN9_XzX1iDg and he don't execute react-native link ...

After react-native link @invertase/react-native-apple-authentication my app crash.

Try manual linking, don't run react-native link, it works for me
https://stackoverflow.com/a/52894280/1901277

Humzzz.
Have anyone facing this issue?
``Unable to find a specification forReact-Coredepended upon byRNAppleAuthentication````

Only when the react-native project is misconfigured
If you can reproduce with the example, let us know

Humzzz.
Have anyone facing this issue?
``Unable to find a specification forReact-Coredepended upon byRNAppleAuthentication````

hi there, i found a workaround:

  1. Navigate to node_modules/@invertase/react-native-apple-authentication
  2. Find the RNAppleAuthentication.podspec
  3. line 18: change 'React-Core' -> 'React/Core'
  4. Save file then pod install again

I've tested in react-native 0.59.2 and it works!
P/s: spent a morning for finding folder react-native-apple-authentication. It was inside @invertase folder instead of standing outside like other packages....

There is no support at all for react-native versions that old. If you were using a version from within the last year, it would work without editing the .podspec. That said, make sure you're using patch-package to implement that change or you'll be very sad next time you run npm i / yarn as it will wipe out your change

Was this page helpful?
0 / 5 - 0 ratings