Skip to content

Commit e690d72

Browse files
authored
Feat/makeover (#35)
* upgrade all android func. * upgrading RN * tsc clean * count case V * count with hook case V * Easy Button revamp V * FlatList revamp V * FlatList revamp V * Home revamp V and assests transf. * Video revamp V * tests passing, still in need of revamping last compos: modal 2 logins and list with... * Modal revamp V * Login related revamp V * list with fetch related revamp V * Cleanup and README.md * fixed video not playing on iOS bug
1 parent 057a068 commit e690d72

File tree

102 files changed

+5322
-6006
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+5322
-6006
lines changed

.buckconfig

Lines changed: 0 additions & 6 deletions
This file was deleted.

.bundle/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BUNDLE_PATH: "vendor/bundle"
2+
BUNDLE_FORCE_RUBY_PLATFORM: 1

.eslintrc.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
module.exports = {
22
root: true,
33
extends: '@react-native-community',
4-
parser: '@typescript-eslint/parser',
5-
plugins: ['@typescript-eslint', 'jest'],
6-
rules: {
7-
semi: [2, 'never'],
8-
'react-native/no-inline-styles': 0,
9-
},
10-
env: {
11-
'jest/globals': true,
12-
},
13-
}
4+
};

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,25 @@ DerivedData
2020
*.hmap
2121
*.ipa
2222
*.xcuserstate
23+
ios/.xcode.env.local
2324

2425
# Android/IntelliJ
2526
#
27+
build/
2628
.idea
2729
.gradle
2830
local.properties
2931
*.iml
3032
*.hprof
31-
32-
# Visual Studio Code
33-
#
34-
.vscode/
33+
.cxx/
34+
*.keystore
35+
!debug.keystore
3536

3637
# node.js
3738
#
3839
node_modules/
3940
npm-debug.log
4041
yarn-error.log
41-
package-lock.json
42-
yarn.lock
43-
44-
# BUCK
45-
buck-out/
46-
\.buckd/
47-
*.keystore
48-
!debug.keystore
4942

5043
# fastlane
5144
#
@@ -54,13 +47,17 @@ buck-out/
5447
# For more information about the recommended setup visit:
5548
# https://docs.fastlane.tools/best-practices/source-control/
5649

57-
*/fastlane/report.xml
58-
*/fastlane/Preview.html
59-
*/fastlane/screenshots
50+
**/fastlane/report.xml
51+
**/fastlane/Preview.html
52+
**/fastlane/screenshots
53+
**/fastlane/test_output
6054

6155
# Bundle artifact
6256
*.jsbundle
6357

64-
# CocoaPods
58+
# Ruby / CocoaPods
6559
/ios/Pods/
60+
/vendor/bundle/
6661

62+
# Temporary files created by Metro to check the health of the file watcher
63+
.metro-health-check*

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

.prettierrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
arrowParens: 'avoid',
3+
bracketSameLine: true,
4+
bracketSpacing: false,
5+
singleQuote: true,
6+
trailingComma: 'all',
7+
};
Lines changed: 37 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
import 'react-native-gesture-handler'
2-
import React from 'react'
3-
import Counter from './Counter'
4-
import LoginSubmission from './LoginSubmission'
5-
import {NavigationContainer} from '@react-navigation/native'
1+
import React from 'react';
2+
import {NavigationContainer} from '@react-navigation/native';
63
import {
74
createStackNavigator,
85
StackNavigationProp,
9-
} from '@react-navigation/stack'
10-
import EasyButton from './EasyButton'
11-
import Home from './Home'
12-
import {ThemeProvider} from '../utils/theme'
13-
import Video from './Video'
14-
import Modal from './Modal'
15-
import FlatList from './FlatList'
16-
import ListWithFetch from './ListWithFetch'
6+
} from '@react-navigation/stack';
7+
import Home from './src/components/Home';
8+
import EasyButton from './src/components/EasyButton';
9+
import Video from './src/components/Video';
10+
import FlatList from './src/components/FlatList';
11+
import Modal from './src/components/Modal';
12+
import {ThemeProvider} from './src/utils/theme';
13+
import ListWithFetch from './src/components/ListWithFetch';
14+
import LoginSubmission from './src/components/LoginSubmission';
15+
import Counter from './src/components/Counter';
16+
import {Alert} from 'react-native';
1717

1818
export type RootStackParamList = {
19-
Home: undefined
20-
Counter: undefined
21-
Login: undefined
22-
EasyButton: undefined
23-
Video: undefined
24-
Modal: undefined
25-
FlatList: undefined
26-
ListWithFetch: undefined
27-
}
28-
export type NavigationProps = StackNavigationProp<RootStackParamList>
19+
Home: undefined;
20+
Counter: undefined;
21+
Login: undefined;
22+
EasyButton: undefined;
23+
Video: undefined;
24+
Modal: undefined;
25+
FlatList: undefined;
26+
ListWithFetch: undefined;
27+
};
28+
export type NavigationProps = StackNavigationProp<RootStackParamList>;
2929

30-
export const Stack = createStackNavigator<RootStackParamList>()
30+
export const Stack = createStackNavigator<RootStackParamList>();
3131

3232
export const SCREENS: Record<string, keyof RootStackParamList> = {
3333
HOME: 'Home',
@@ -38,7 +38,13 @@ export const SCREENS: Record<string, keyof RootStackParamList> = {
3838
MODAL: 'Modal',
3939
FLATLIST: 'FlatList',
4040
LIST_WITH_FETCH: 'ListWithFetch',
41-
}
41+
};
42+
const EasyButtonScreen = () => {
43+
const handleOnPress = () => {
44+
Alert.alert('EasyButton', 'You clicked me!');
45+
};
46+
return <EasyButton onPress={handleOnPress} />;
47+
};
4248
export default () => {
4349
return (
4450
<>
@@ -47,7 +53,10 @@ export default () => {
4753
<Stack.Navigator initialRouteName="Home">
4854
<Stack.Screen name={SCREENS.HOME} component={Home} />
4955
<Stack.Screen name={SCREENS.LOGIN} component={LoginSubmission} />
50-
<Stack.Screen name={SCREENS.EASYBUTTON} component={EasyButton} />
56+
<Stack.Screen
57+
name={SCREENS.EASYBUTTON}
58+
component={EasyButtonScreen}
59+
/>
5160
<Stack.Screen name={SCREENS.COUNTER} component={Counter} />
5261
<Stack.Screen name={SCREENS.VIDEO} component={Video} />
5362
<Stack.Screen name={SCREENS.MODAL} component={Modal} />
@@ -60,5 +69,5 @@ export default () => {
6069
</NavigationContainer>
6170
</ThemeProvider>
6271
</>
63-
)
64-
}
72+
);
73+
};

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4+
ruby '>= 2.6.10'
5+
6+
gem 'cocoapods', '>= 1.11.3'

0 commit comments

Comments
 (0)