Skip to content

Commit a61776e

Browse files
main-code
0 parents  commit a61776e

File tree

452 files changed

+204507
-0
lines changed

Some content is hidden

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

452 files changed

+204507
-0
lines changed

.bundle/config

+2
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

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native-community',
4+
rules: {
5+
curly: 'off',
6+
'react-native/no-inline-styles': 0,
7+
'prettier/prettier': 0,
8+
'react-hooks/exhaustive-deps': 0,
9+
},
10+
};

.gitignore

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
2+
# OSX
3+
#
4+
.DS_Store
5+
6+
# Xcode
7+
#
8+
build/
9+
*.pbxuser
10+
!default.pbxuser
11+
*.mode1v3
12+
!default.mode1v3
13+
*.mode2v3
14+
!default.mode2v3
15+
*.perspectivev3
16+
!default.perspectivev3
17+
xcuserdata
18+
*.xccheckout
19+
*.moved-aside
20+
DerivedData
21+
*.hmap
22+
*.ipa
23+
*.xcuserstate
24+
ios/.xcode.env.local
25+
26+
# Android/IntelliJ
27+
#
28+
build/
29+
.idea
30+
.gradle
31+
local.properties
32+
*.iml
33+
*.hprof
34+
.cxx/
35+
*.keystore
36+
!debug.keystore
37+
38+
# node.js
39+
#
40+
node_modules
41+
42+
# fastlane
43+
#
44+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
45+
# screenshots whenever they are needed.
46+
# For more information about the recommended setup visit:
47+
# https://docs.fastlane.tools/best-practices/source-control/
48+
49+
**/fastlane/report.xml
50+
**/fastlane/Preview.html
51+
**/fastlane/screenshots
52+
**/fastlane/test_output
53+
54+
# Bundle artifact
55+
*.jsbundle
56+
57+
# Ruby / CocoaPods
58+
/ios/Pods/
59+
/vendor/bundle/
60+
61+
# Temporary files created by Metro to check the health of the file watcher
62+
.metro-health-check*

.node-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

.prettierrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
arrowParens: 'avoid',
3+
bracketSameLine: true,
4+
bracketSpacing: false,
5+
singleQuote: true,
6+
trailingComma: 'all',
7+
endOfLine: 'auto',
8+
};

.watchmanconfig

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

App.tsx

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
import {NavigationContainer} from '@react-navigation/native';
2+
import {useEffect, useRef, useState} from 'react';
3+
import {requestPermissions} from './src/utils/permissions';
4+
import AuthStackNavigator from './src/navigators/AuthStackNavigator';
5+
import StackNavigator from './src/navigators/StackNavigator';
6+
import {Toast} from 'react-native-toast-message/lib/src/Toast';
7+
import MainTabNavigator from './src/navigators/MainTabNavigator';
8+
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
9+
import Navigation from './src/utils/appNavigation';
10+
import HomeStackNavigator from './src/navigators/HomeStackNavigator';
11+
import React from 'react';
12+
import {Provider} from 'react-redux';
13+
import store from './src/redux/app/store';
14+
import {persistStore} from 'redux-persist';
15+
import {PersistGate} from 'redux-persist/integration/react';
16+
import 'react-native-gesture-handler';
17+
import {RootSiblingParent} from 'react-native-root-siblings';
18+
import {GestureHandlerRootView} from 'react-native-gesture-handler';
19+
import RNCallKeep, {IOptions} from 'react-native-callkeep';
20+
import {AppRegistry, Platform, SafeAreaView} from 'react-native';
21+
import * as OverlayPermissionModule from 'videosdk-rn-android-overlay-permission';
22+
import {getChatData} from './src/utils/chat';
23+
import {User} from './src/interface/types';
24+
import Mapbox from '@rnmapbox/maps';
25+
import {Settings} from 'react-native-fbsdk-next';
26+
27+
Mapbox.setAccessToken(
28+
'sk.eyJ1IjoidXNtYW43NzciLCJhIjoiY2xvMGQ5MzQ1MTh4MjJ3bjByYnQ3ODZlNiJ9.CjbL2MyTL8IU8EE2jqko_w',
29+
);
30+
31+
let persistor = persistStore(store);
32+
33+
const App = () => {
34+
useEffect(() => {
35+
// Settings.setAppID('253076394397593');
36+
Settings.initializeSDK();
37+
38+
() => {
39+
return;
40+
};
41+
}, []);
42+
43+
useEffect(() => {
44+
// RNCallKeep.setAvailable(true);
45+
46+
if (Platform.OS === 'android') {
47+
OverlayPermissionModule.requestOverlayPermission();
48+
}
49+
}, []);
50+
51+
// const Tab = createBottomTabNavigator();
52+
53+
return (
54+
<>
55+
<Provider store={store}>
56+
<PersistGate loading={null} persistor={persistor}>
57+
<RootSiblingParent>
58+
<GestureHandlerRootView style={{flex: 1}}>
59+
<NavigationContainer
60+
ref={Navigation.navigationRef}
61+
onStateChange={state => {
62+
// const previousRouteName = Navigation.routeNameRef.current;
63+
const currentRouteName = Navigation.getActiveRouteName(state);
64+
// if (previousRouteName !== currentRouteName) {
65+
// setCurrentScreen(currentRouteName);
66+
// }
67+
Navigation.routeNameRef.current = currentRouteName;
68+
}}>
69+
<SafeAreaView style={{backgroundColor: 'transparent', flex: 1}}>
70+
<StackNavigator />
71+
</SafeAreaView>
72+
</NavigationContainer>
73+
</GestureHandlerRootView>
74+
</RootSiblingParent>
75+
</PersistGate>
76+
77+
<Toast />
78+
</Provider>
79+
</>
80+
);
81+
};
82+
83+
export default App;

Gemfile

+6
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'

GlobalStyles.js

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/* fonts */
2+
import {
3+
verticalScale,
4+
horizontalScale,
5+
moderateScale,
6+
} from './src/utils/metrics';
7+
export const FontFamily = {
8+
boldFootnote13pt: 'Source Sans Pro',
9+
regularFootnote13pt: 'Open Sans',
10+
boldHeading128pt: 'Satoshi Variable_bold',
11+
rubikBold: 'Rubik_bold',
12+
defaultRegularBody: 'Roboto Condensed',
13+
defaultBoldBody: 'Roboto',
14+
};
15+
/* font sizes */
16+
export const FontSize = {
17+
boldFootnote13pt_size: 13,
18+
size_base: 16,
19+
boldHeading128pt_size: 28,
20+
size_lg: 18,
21+
defaultRegularBody_size: 17,
22+
boldDisplay34Pt_size: 34,
23+
};
24+
/* Colors */
25+
export const Color = {
26+
neutral50: '#f9fafa',
27+
labelColorLightPrimary: '#000',
28+
primary400: '#2791b5',
29+
mainColorsWhite: '#fff',
30+
primary600: '#265565',
31+
primary800: '#134555',
32+
primaryPastelGreen: '#ccf593',
33+
textPlaceholder: '#d6d6d6',
34+
lightgray_100: '#ccc',
35+
neutral700: '#576b74',
36+
gray_100: '#222',
37+
primary8001: '#10242b',
38+
neutral900: '#0c212c',
39+
fillColorLightTertiary: 'rgba(118, 118, 128, 0.12)',
40+
mainGreen: '#8eb26f',
41+
neutral300: '#d6dadb',
42+
neutral500: '#94a5ab',
43+
};
44+
/* Paddings */
45+
export const Padding = {
46+
p_98xl: horizontalScale(55),
47+
p_base: 16,
48+
p_9xs: 4,
49+
p_3xs: 10,
50+
p_xs: 12,
51+
p_5xs: 8,
52+
p_6xs: 7,
53+
p_sm: 14,
54+
p_90xl: 109,
55+
};
56+
/* border radiuses */
57+
export const Border = {
58+
br_81xl: 100,
59+
br_xs: 12,
60+
br_xl: 20,
61+
br_5xs: 8,
62+
br_3xs: 10,
63+
br_7xs: 6,
64+
br_5xl: 24,
65+
};

__tests__/App-test.tsx

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @format
3+
*/
4+
5+
import 'react-native';
6+
import React from 'react';
7+
import App from '../App';
8+
9+
// Note: test renderer must be required after react-native.
10+
import renderer from 'react-test-renderer';
11+
12+
it('renders correctly', () => {
13+
renderer.create(<App />);
14+
});

android/Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source "https://rubygems.org"
2+
3+
gem "fastlane"
4+
5+
plugins_path = File.join(File.dirname(__FILE__), 'Pluginfile')
6+
eval_gemfile(plugins_path) if File.exist?(plugins_path)

0 commit comments

Comments
 (0)