Skip to content

Commit c88619d

Browse files
committed
First commit
1 parent ef5d90d commit c88619d

Some content is hidden

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

60 files changed

+6121
-42
lines changed

App.js

-21
This file was deleted.

App.tsx

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import React from "react";
2+
import Constants from "expo-constants";
3+
4+
import * as SplashScreen from "expo-splash-screen";
5+
import theme from "./src/theme";
6+
7+
import {
8+
useFonts,
9+
Roboto_300Light,
10+
Roboto_400Regular,
11+
Roboto_500Medium,
12+
Roboto_700Bold,
13+
} from "@expo-google-fonts/roboto";
14+
import {
15+
Poppins_300Light,
16+
Poppins_400Regular,
17+
Poppins_500Medium,
18+
Poppins_600SemiBold,
19+
Poppins_700Bold,
20+
} from "@expo-google-fonts/poppins";
21+
import { Text, View } from "react-native";
22+
import { GestureHandlerRootView } from "react-native-gesture-handler";
23+
import { ThemeProvider } from "styled-components/native";
24+
25+
import { Home } from "./src/screens/Home";
26+
import { SafeAreaProvider } from "react-native-safe-area-context";
27+
import { StatusBar } from "expo-status-bar";
28+
import { Routes } from "./src/routes";
29+
30+
export default function App() {
31+
SplashScreen.preventAutoHideAsync();
32+
const [fontsLoaded] = useFonts({
33+
Roboto_300Light,
34+
Roboto_400Regular,
35+
Roboto_500Medium,
36+
Roboto_700Bold,
37+
Poppins_300Light,
38+
Poppins_400Regular,
39+
Poppins_500Medium,
40+
Poppins_600SemiBold,
41+
Poppins_700Bold,
42+
});
43+
if (!fontsLoaded) {
44+
return null;
45+
}
46+
SplashScreen.hideAsync();
47+
48+
return (
49+
<SafeAreaProvider style={{ marginTop: Constants.statusBarHeight }}>
50+
<GestureHandlerRootView style={{ flex: 1 }}>
51+
<StatusBar style="light" translucent backgroundColor="transparent" />
52+
<ThemeProvider theme={theme}>
53+
<Routes />
54+
</ThemeProvider>
55+
</GestureHandlerRootView>
56+
</SafeAreaProvider>
57+
);
58+
}

babel.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
module.exports = function(api) {
1+
module.exports = function (api) {
22
api.cache(true);
33
return {
4-
presets: ['babel-preset-expo']
4+
presets: ["babel-preset-expo"],
55
};
66
};

metro.config.js

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
// Learn more https://docs.expo.io/guides/customizing-metro
22
const { getDefaultConfig } = require('expo/metro-config');
33

4-
module.exports = getDefaultConfig(__dirname);
4+
module.exports = (() => {
5+
const config = getDefaultConfig(__dirname);
6+
7+
const { transformer, resolver } = config;
8+
9+
config.transformer = {
10+
...transformer,
11+
babelTransformerPath: require.resolve("react-native-svg-transformer"),
12+
};
13+
config.resolver = {
14+
...resolver,
15+
assetExts: resolver.assetExts.filter((ext) => ext !== "svg"),
16+
sourceExts: [...resolver.sourceExts, "svg"],
17+
};
18+
19+
return config;
20+
})();

package.json

+27-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,39 @@
99
"web": "expo start --web"
1010
},
1111
"dependencies": {
12+
"@expo-google-fonts/poppins": "^0.2.2",
13+
"@expo-google-fonts/roboto": "^0.2.2",
14+
"@react-native-async-storage/async-storage": "^1.17.11",
15+
"@react-navigation/bottom-tabs": "^6.4.1",
16+
"@react-navigation/native": "^6.0.14",
17+
"@react-navigation/native-stack": "^6.9.2",
18+
"@rneui/base": "^4.0.0-rc.7",
19+
"@rneui/themed": "^4.0.0-rc.7",
20+
"@types/styled-components": "^5.1.26",
1221
"expo": "~47.0.6",
22+
"expo-dev-client": "~2.0.1",
23+
"expo-fast-image": "^1.1.3",
24+
"expo-file-system": "~15.1.1",
1325
"expo-splash-screen": "~0.17.5",
1426
"expo-status-bar": "~1.4.2",
27+
"firebase": "^9.14.0",
1528
"react": "18.1.0",
16-
"react-native": "0.70.5"
29+
"react-native": "0.70.5",
30+
"react-native-fast-image": "^8.6.3",
31+
"react-native-gesture-handler": "~2.8.0",
32+
"react-native-responsive-fontsize": "^0.5.1",
33+
"react-native-safe-area-context": "4.4.1",
34+
"react-native-screens": "~3.18.0",
35+
"react-native-svg": "13.4.0",
36+
"styled-components": "^5.3.6"
1737
},
1838
"devDependencies": {
19-
"@babel/core": "^7.12.9"
39+
"@babel/core": "^7.12.9",
40+
"@types/react": "~18.0.24",
41+
"@types/react-native": "~0.70.6",
42+
"@types/styled-components-react-native": "^5.2.0",
43+
"react-native-svg-transformer": "^1.0.0",
44+
"typescript": "^4.6.3"
2045
},
2146
"private": true
2247
}

src/@types/png.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module "*.png"

src/@types/svg.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
declare module "*.svg" {
2+
import React from "react";
3+
import { SvgProps } from 'react-native-svg';
4+
const content: React.FC<SvgProps>;
5+
export default content;
6+
}

src/DTOs/CategoryDTO.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export interface CategoryDTO {
2+
uid: string;
3+
name: string;
4+
subCategories: string[];
5+
}

src/assets/Firefoo-1.5.5.Setup.exe

83.7 MB
Binary file not shown.

src/assets/dress-outlined.svg

+51
Loading

src/assets/dress-svgrepo-com.svg

+1
Loading

src/assets/dress.svg

+1
Loading

src/assets/lipstick-outlined.svg

+52
Loading

src/assets/lipstick.svg

+67
Loading

src/components/Button/index.tsx

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from "react";
2+
import { RectButtonProps } from "react-native-gesture-handler";
3+
4+
import { Container, Content, Title } from "./styles";
5+
6+
interface Props extends RectButtonProps {
7+
type: "black" | "white" | "red";
8+
title: string;
9+
}
10+
export function Button({ type, title, ...rest }: Props) {
11+
return (
12+
<Container type={type}>
13+
<Content {...rest}>
14+
<Title type={type}>{title}</Title>
15+
</Content>
16+
</Container>
17+
);
18+
}

src/components/Button/styles.ts

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { RectButton } from "react-native-gesture-handler";
2+
import { RFValue } from "react-native-responsive-fontsize";
3+
import styled from "styled-components/native";
4+
5+
interface Props {
6+
type: "black" | "white" | "red";
7+
}
8+
9+
export const Container = styled.View<Props>`
10+
min-height: 45px;
11+
max-height: 50px;
12+
width: 100%;
13+
background-color: ${({ theme, type }) =>
14+
(type === "black" && theme.COLORS.light_contrast) ||
15+
(type === "white" && theme.COLORS.light_background) ||
16+
(type === "red" && theme.COLORS.danger)};
17+
`;
18+
export const Content = styled(RectButton)`
19+
flex: 1;
20+
justify-content:center ;
21+
align-items:center ;
22+
`;
23+
24+
export const Title = styled.Text<Props>`
25+
font-family: ${({ theme }) => theme.FONTS.TEXT_BOLD};
26+
font-size: ${RFValue(12)}px;
27+
color: ${({ theme, type }) =>
28+
type === "white" ? theme.COLORS.danger : theme.COLORS.light_tint};
29+
`;

0 commit comments

Comments
 (0)