diff --git a/FronteggRN.podspec b/FronteggRN.podspec index 306feca..4d2734f 100644 --- a/FronteggRN.podspec +++ b/FronteggRN.podspec @@ -20,10 +20,10 @@ Pod::Spec.new do |s| # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79. if respond_to?(:install_modules_dependencies, true) install_modules_dependencies(s) - s.dependency "FronteggSwift", "1.2.16" + s.dependency "FronteggSwift", "1.2.18" else s.dependency "React-Core" - s.dependency "FronteggSwift", "1.2.16" + s.dependency "FronteggSwift", "1.2.18" # Don't install the dependencies when we run `pod install` in the old architecture. if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then diff --git a/README.md b/README.md index 6dd883a..b400a75 100644 --- a/README.md +++ b/README.md @@ -452,11 +452,11 @@ To log in with frontegg you can use the `useAuth` hook: ```tsx import { View, Button } from 'react-native'; -import { useAuth } from '@frontegg/react-native'; +import { useAuth, login, logout } from '@frontegg/react-native'; export function MyScreen() { - const { isAuthenticated, login, logout } = useAuth(); + const { isAuthenticated } = useAuth(); return