Skip to content

Commit

Permalink
Merge pull request #4 from cobuildlab/run-android
Browse files Browse the repository at this point in the history
Run-android
  • Loading branch information
alacret authored Mar 9, 2022
2 parents d1974e4 + c53f7d3 commit b626515
Show file tree
Hide file tree
Showing 8 changed files with 14,244 additions and 25,114 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@
{
"extensions": [".ts", ".tsx"]
}
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
},
"overrides": [
Expand Down
6 changes: 6 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="app" android:scheme="cuplr" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
Expand Down
25,113 changes: 0 additions & 25,113 deletions package-lock.json

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"react-native-emoji-selector": "^0.2.0",
"react-native-gesture-handler": "~1.10.2",
"react-native-get-random-values": "1.5.0",
"react-native-intl": "^1.0.0",
"react-native-linear-gradient": "^2.5.6",
"react-native-localhost": "1.0.0",
"react-native-os": "^1.0.1",
Expand Down
23 changes: 23 additions & 0 deletions src/linking.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const config = {
screens: {
// Home: {
// path: 'home/:id',
// parse: {
// id: (id) => `${id}`,
// },
// },
// Profile: {
// path: 'profile/:id',
// parse: {
// id: (id) => `${id}`,
// },
// },
Notifications: 'notifications',
Settings: 'settings',
},
};

export const linking = {
prefixes: ['cuplr://app'],
config,
};
3 changes: 2 additions & 1 deletion src/shared/navigation/AppNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { DefaultTheme, NavigationContainer } from '@react-navigation/native';

import { MainStack } from './MainStackNavigator';
import { theme } from '../../constants/theme';
import { linking } from '../../linking';

export const AppNavigator = (): ReactElement => {
const navigationTheme = {
Expand All @@ -14,7 +15,7 @@ export const AppNavigator = (): ReactElement => {
};

return (
<NavigationContainer theme={navigationTheme}>
<NavigationContainer theme={navigationTheme} linking={linking}>
<MainStack />
</NavigationContainer>
);
Expand Down
2 changes: 2 additions & 0 deletions src/utils/formatters.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Intl from 'react-native-intl';

export const n6 = new Intl.NumberFormat('en-us', {
style: 'decimal',
minimumFractionDigits: 0,
Expand Down
14,204 changes: 14,204 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit b626515

Please sign in to comment.