Matt Raible
Follow this issue to get notified when our React Native SDK has TypeScript support.
Matt Raible
Follow this issue to get notified when our React Native SDK has TypeScript support.
Jacky Ip
Hi Matt,
Thanks for this guide. I’ve got stuck on the following error, could shed some light how to resolve it please?
npm ERR! While resolving: ReactNativeLogin@0.0.1
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR! react@“17.0.1” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0-0" from enzyme-adapter-react-16@1.15.6
npm ERR! node_modules/enzyme-adapter-react-16
npm ERR! dev enzyme-adapter-react-16@“1.15.6” from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Cheers
Jacky
Matt Raible
This looks like an error that npm 7 would spit out. Can you please try with npm 6?
Jacky Ip
Thanks Matt, the npm 6 works.
Hi Matt,
Could we use these okta react native components under Cordova (hybrid mobile app) with React application ?
Okta react native components:
import { createConfig, signIn, signOut, isAuthenticated, getUser, getUserFromIdToken, EventEmitter } from '@okta/okta-react-native';
I’m not sure as I haven’t tried. You might try posting this question as an issue in the okta-react-native repository.
Thank you Matt, for your update and time. I have tried but could not make to work due to react-native dependencies.