Skip to content

Commit 913c87d

Browse files
committed
feat: migrate to new tech stack
1 parent f3c81f0 commit 913c87d

Some content is hidden

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

55 files changed

+17802
-3569
lines changed
38.2 MB
Loading

.prettierrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSameLine": false,
4+
"bracketSpacing": true,
5+
"embeddedLanguageFormatting": "auto",
6+
"htmlWhitespaceSensitivity": "css",
7+
"insertPragma": false,
8+
"jsxSingleQuote": false,
9+
"printWidth": 80,
10+
"proseWrap": "preserve",
11+
"quoteProps": "as-needed",
12+
"requirePragma": false,
13+
"semi": true,
14+
"singleQuote": true,
15+
"tabWidth": 2,
16+
"trailingComma": "es5",
17+
"useTabs": false,
18+
"vueIndentScriptAndStyle": false
19+
}

LICENSE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2022 Jack Lam jacklam718@gmail.com
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Inspired By: <br>
2-
https://dribbble.com/shots/9025886-Coinbase-Pro-App
1+
[Expo](exp://exp.host/@jacklam718/crypto-app?release-channel=default)
2+
3+
<img src="https://qr.expo.dev/expo-go?owner=jacklam718&slug=crypto-app&releaseChannel=default&host=exp.host" width="250"/>
34

45
Preview: <br>
5-
<img src=".github/cryto-app.gif">
6+
<img src=".github/crypto-app.gif">

app.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
{
22
"expo": {
3-
"name": "cryto-app",
4-
"slug": "cryto-app",
3+
"name": "crypto-app",
4+
"slug": "crypto-app",
55
"privacy": "public",
6-
"platforms": [
7-
"ios",
8-
"android",
9-
"web"
10-
],
6+
"platforms": ["ios", "android", "web"],
117
"version": "1.0.0",
128
"orientation": "portrait",
139
"icon": "./assets/icon.png",
@@ -19,9 +15,7 @@
1915
"updates": {
2016
"fallbackToCacheTimeout": 0
2117
},
22-
"assetBundlePatterns": [
23-
"**/*"
24-
],
18+
"assetBundlePatterns": ["**/*"],
2519
"ios": {
2620
"supportsTablet": true,
2721
"userInterfaceStyle": "automatic"

package.json

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,27 @@
88
"eject": "expo eject"
99
},
1010
"dependencies": {
11+
"@react-navigation/native": "^6.0.12",
12+
"@react-navigation/native-stack": "^6.8.0",
13+
"@tanstack/react-query": "^4.10.1",
14+
"axios": "^0.27.2",
1115
"d3-array": "^2.4.0",
1216
"d3-scale": "^3.2.1",
1317
"d3-shape": "^1.3.7",
14-
"expo": "^41.0.0",
15-
"immer": "^5.2.1",
16-
"react": "16.13.1",
17-
"react-dom": "16.13.1",
18-
"react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz",
19-
"react-native-appearance": "~0.3.3",
18+
"expo": "^46.0.0",
19+
"expo-updates": "~0.14.5",
20+
"lottie-react-native": "5.1.3",
21+
"react": "18.0.0",
22+
"react-native": "0.69.5",
2023
"react-native-base-components": "git+ssh://git@github.com/jacklam718/react-native-base-components",
21-
"react-native-svg": "12.1.0",
22-
"react-redux": "^7.1.3",
23-
"redux": "^4.0.5",
24-
"redux-actions": "^2.6.5",
25-
"redux-saga": "^1.1.3"
24+
"react-native-safe-area-context": "4.3.1",
25+
"react-native-screens": "~3.15.0",
26+
"react-native-svg": "12.1.1"
2627
},
2728
"devDependencies": {
28-
"@babel/core": "~7.9.0",
29-
"babel-preset-expo": "8.3.0"
29+
"@babel/core": "^7.18.6",
30+
"babel-preset-expo": "~9.2.0",
31+
"prettier": "^2.7.1"
3032
},
3133
"private": true
3234
}

src/App.js

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
import React from 'react';
2-
import { View } from 'react-native';
3-
import { Header } from 'react-native-base-components/src/header';
4-
import { withStyled } from 'react-native-base-components/';
5-
import SymbolList from './components/SymbolList';
2+
import { NavigationContainer } from '@react-navigation/native';
3+
import { createNativeStackNavigator } from '@react-navigation/native-stack';
4+
import { TokenListScreen, TokenDetailsScreen } from './screens';
65

7-
const App = withStyled(({ theme }) => (
8-
<View style={{ backgroundColor: theme.colors.background }}>
9-
<Header
10-
title="Crypto"
11-
overrides={{
12-
Root: { style: { position: 'relative' } },
13-
Content: { style: { paddingHorizontal: 24 } },
14-
TitleText: { style: { fontSize: 30 } },
15-
LeftItem: { component: () => null }
16-
}}
17-
/>
18-
<SymbolList />
19-
</View>
20-
));
6+
const Stack = createNativeStackNavigator();
217

22-
export default App;
8+
const App = () => {
9+
return (
10+
<NavigationContainer>
11+
<Stack.Navigator
12+
screenOptions={{
13+
headerShown: false,
14+
}}
15+
>
16+
<Stack.Screen
17+
name="TokenList"
18+
options={{ title: 'Crypto' }}
19+
component={TokenListScreen}
20+
/>
21+
<Stack.Screen name="TokenDetails" component={TokenDetailsScreen} />
22+
</Stack.Navigator>
23+
</NavigationContainer>
24+
);
25+
};
26+
27+
export default App;

src/actions/index.js

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

src/api.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import axios from 'axios';
2+
3+
const api = axios.create({});
4+
export default api;

0 commit comments

Comments
 (0)