Skip to content

Commit 7413526

Browse files
committed
Working App
0 parents  commit 7413526

Some content is hidden

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

71 files changed

+19723
-0
lines changed

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native',
4+
};

.gitignore

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

.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+
};

.watchmanconfig

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

App.tsx

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import React from 'react';
2+
import {
3+
StyleSheet,
4+
View,
5+
useColorScheme,
6+
} from 'react-native';
7+
8+
import {
9+
Colors,
10+
} from 'react-native/Libraries/NewAppScreen';
11+
import ChatUI from './ChatUI';
12+
13+
14+
function App(): React.JSX.Element {
15+
const isDarkMode = useColorScheme() === 'dark';
16+
17+
const backgroundStyle = {
18+
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
19+
};
20+
21+
return (
22+
<View style={styles.container}>
23+
<View style={styles.chatbotContainer}>
24+
<ChatUI></ChatUI>
25+
</View>
26+
</View>
27+
);
28+
}
29+
30+
const styles = StyleSheet.create({
31+
container: {
32+
flex: 1,
33+
justifyContent: 'center',
34+
alignItems: 'center',
35+
backgroundColor: '#000000',
36+
},
37+
chatbotContainer: {
38+
width: '100%', // Adjust the width to your preference
39+
height: '100%', // Adjust the height to your preference
40+
padding: 5, // Adds padding inside the container
41+
paddingBottom: 20,
42+
paddingTop: 60,
43+
backgroundColor: '#000000', // Optional: Add background color to the Chatbot container
44+
},
45+
sectionContainer: {
46+
marginTop: 32,
47+
paddingHorizontal: 24,
48+
},
49+
sectionTitle: {
50+
fontSize: 24,
51+
fontWeight: '600',
52+
},
53+
sectionDescription: {
54+
marginTop: 8,
55+
fontSize: 18,
56+
fontWeight: '400',
57+
},
58+
highlight: {
59+
fontWeight: '700',
60+
},
61+
});
62+
63+
export default App;

0 commit comments

Comments
 (0)