Skip to content
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

How to setup appwriteauth11 project #22

Open
mashwishi opened this issue Sep 17, 2023 · 4 comments
Open

How to setup appwriteauth11 project #22

mashwishi opened this issue Sep 17, 2023 · 4 comments

Comments

@mashwishi
Copy link

I am quite new in react native and i am from reactjs, i saw your video about react native and appwrite

I've watched the video and looks like you haven't touched App.tsx file while upon my testing it only show the App.tsx contents and i wasnt able to navigate at the login/sign up or home screen.

@mashwishi
Copy link
Author

Correct me if i am wrong based on my understanding i have to use import { Router } from './routes/Router'
then use this as my return in the app. I am confuse of the routing term.

Well this works but let me know if there's something that i missed.

@disersoft-code
Copy link

Hello @mashwishi, were you able to solve it? It already lets me log in and create the user, I need to redirect it to Home when I log in.

@disersoft-code
Copy link

disersoft-code commented Oct 5, 2023

If any has problem with this project the correct App.tsx is:

import React from 'react';
import {Router} from './routes/Router';
import {AppwriteProvider} from './appwrite/AppwriteContext';

export default function App() { return ( <> <AppwriteProvider> <Router /> </AppwriteProvider> </> ); }

@moosakhuwaja
Copy link

Hello, @mashwishi! It seems you only need to render the Router component. Here's a code snippet for your App component:

import React from 'react';
import { Router } from './routes/Router';

const App = () => {
  return (
    <Router />
  );
}

export default App;

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

No branches or pull requests

3 participants