-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Init mobile app * Fix typo * Move project to root. * Add login layout. Add aliases for folders. * Add linter and run it. * Add pull request template. * Add expo-av and example of video in HomeScreen. * Organize video player for more clean example with reference to video second. * Add tabnavigator with init structure of screens. * Add user button to navigate tu user profile. * Add screens missing, empty. * Add register screen. * Add modal when sign up. * Add wall layout with videos mock and video screen layout. * Upload video to firebase first atempt. TODO: Mayor refactor. * Refactor over uploading videos to firebase. * Add text to icon buttons. * Add modal when video uploaded. * OkModal now a general component. * Schema por env file. * Restore gitignore. * Change styles in login /signup to nacho's suggestions. * Add env example. * Add validation in upload video button . * Change upload to firebase function name. * Upload video (#7) * Upload video to firebase first atempt. TODO: Mayor refactor. * Refactor over uploading videos to firebase. * Add text to icon buttons. * Add modal when video uploaded. * OkModal now a general component. * Schema por env file. * Restore gitignore. * Change styles in login /signup to nacho's suggestions. * Add env example. * Add validation in upload video button . * Change upload to firebase function name. * Add connection to appserver with apisauce and redux for the store. * Update readme with tutorial to connect to appserver locally. * Add login logic with appserver (mock). * Fix initial loading styles. * Update readme with credentials for login. * Add logic of register. * Move clean form into another function. * Changes due to changes in endpoints. * Fixes. * Add error to login and signup. * Add user in upload video screen. * Add error in upload video screen. * Merge with master. * Fix styles logout for now. Co-authored-by: chortas <[email protected]>
- Loading branch information
Showing
27 changed files
with
551 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import 'react-native-gesture-handler'; | ||
import React from 'react'; | ||
import { Provider } from 'react-redux'; | ||
|
||
import store from '@redux/store'; | ||
|
||
import AppWithNavigation from './src/app'; | ||
|
||
export default function App() { | ||
return <AppWithNavigation />; | ||
return ( | ||
<Provider store={store}> | ||
<AppWithNavigation /> | ||
</Provider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React, { useCallback } from 'react'; | ||
import { useDispatch } from 'react-redux'; | ||
|
||
import { FontAwesome } from '@expo/vector-icons'; | ||
import { ROUTES } from '@constants/routes'; | ||
import { COLORS } from '@constants/colors'; | ||
import actionCreator from '@redux/auth/actions'; | ||
|
||
export default function LoginButton({ navigation }) { | ||
const dispatch = useDispatch(); | ||
|
||
const onLogout = useCallback(() => { | ||
dispatch(actionCreator.logout()); | ||
navigation.navigate(ROUTES.Login); | ||
}, [navigation, dispatch]); | ||
|
||
return ( | ||
<> | ||
<FontAwesome.Button | ||
name="sign-out" | ||
backgroundColor={COLORS.white} | ||
color={COLORS.main} | ||
size={30} | ||
onPress={onLogout} | ||
/> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.