-
Notifications
You must be signed in to change notification settings - Fork 2
ReactNativeStarter #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Missing husky + lint staged
- Missing Auth0 loogin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Missing Github workflows
- remove yarn.lock file
- Include instructions in the Readme on how to use the starer (Npm i, husky, etc)
app/auth/auth.tsx
Outdated
.authorize({ | ||
scope: 'openid profile email', | ||
}) | ||
.then((credentials) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, then / catch logic in the Views, we need to handle this with events and subscriptions
app/auth/auth.tsx
Outdated
}, | ||
}); | ||
|
||
export const Auth = ({ navigation }): ReactElement => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file name should be CamelCase
app/auth/auth.tsx
Outdated
const loggedIn = useEvent(LoginEvent); | ||
|
||
const onLogin = (): void => { | ||
auth0.webAuth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This news to be put in an action file
app/dashboard/Dashboard.tsx
Outdated
const data = useEvent(TokensEvent).idToken; | ||
|
||
const onLogout = (): void => { | ||
auth0.webAuth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in an action file.
Also, the file structure is not correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- document action functions
- prefer async / await over then/catch
- Remove yarn.lock
New application starter for react-native