Skip to content

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

Merged
merged 14 commits into from
May 7, 2021
Merged

ReactNativeStarter #1

merged 14 commits into from
May 7, 2021

Conversation

Gressia10
Copy link

New application starter for react-native

@Gressia10 Gressia10 requested a review from alacret April 19, 2021 16:40
Copy link
Contributor

@alacret alacret left a 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

@Gressia10 Gressia10 requested a review from alacret April 28, 2021 23:13
Copy link
Contributor

@alacret alacret left a 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)

@Gressia10 Gressia10 requested a review from alacret April 29, 2021 13:46
.authorize({
scope: 'openid profile email',
})
.then((credentials) => {
Copy link
Contributor

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

@Gressia10 Gressia10 requested a review from alacret May 3, 2021 19:07
},
});

export const Auth = ({ navigation }): ReactElement => {
Copy link
Contributor

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

const loggedIn = useEvent(LoginEvent);

const onLogin = (): void => {
auth0.webAuth
Copy link
Contributor

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

const data = useEvent(TokensEvent).idToken;

const onLogout = (): void => {
auth0.webAuth
Copy link
Contributor

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

@Gressia10 Gressia10 requested review from alacret May 4, 2021 14:00
Copy link
Contributor

@alacret alacret left a 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

@alacret alacret merged commit 1778f92 into main May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants