Commit 47173fbd authored by Malith Anjana's avatar Malith Anjana

customize chatbot

parent b8842fd5
{
"migIndex": 1,
"data": [
{
"path": "src/assets/fonts/Poppins-Bold.ttf",
"sha1": "974b66074f1e265c0d203a4e2989c6120af3bc55"
},
{
"path": "src/assets/fonts/Poppins-Light.ttf",
"sha1": "107454fb84957d1ea4bd4c0335377df253eb2258"
},
{
"path": "src/assets/fonts/Poppins-Medium.ttf",
"sha1": "6575dbf38e9e61beec498e2be61c89d43399db24"
},
{
"path": "src/assets/fonts/Poppins-Regular.ttf",
"sha1": "dd48971530e3f19f7067ad80ce6c215365fe7269"
},
{
"path": "src/assets/fonts/Poppins-SemiBold.ttf",
"sha1": "33cccb49029917a6175e7e7a754e296d518c2710"
}
]
}
...@@ -14,6 +14,11 @@ ...@@ -14,6 +14,11 @@
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
7699B88040F8A987B510C191 /* libPods-better_you-better_youTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-better_you-better_youTests.a */; }; 7699B88040F8A987B510C191 /* libPods-better_you-better_youTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-better_you-better_youTests.a */; };
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
4FA46DCA80144D1E99FBC236 /* Poppins-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B6073855E1454671B0D27B34 /* Poppins-Bold.ttf */; };
7E5E4AC3FEA6449AB9F3F36E /* Poppins-Light.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 428FA2CDECB74070A32B45B2 /* Poppins-Light.ttf */; };
56654B86D26448C5968A18AC /* Poppins-Medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EFB9B63E1E8D460B8E4862C5 /* Poppins-Medium.ttf */; };
A75510E63EBB4B1DB5DC9CA9 /* Poppins-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E9EF9CFCA8FB4604A36AA796 /* Poppins-Regular.ttf */; };
88ADD77DB4EE47D7AFC2C1E9 /* Poppins-SemiBold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F9FA5AFDA23347BEB137F39D /* Poppins-SemiBold.ttf */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */ /* Begin PBXContainerItemProxy section */
...@@ -44,6 +49,11 @@ ...@@ -44,6 +49,11 @@
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = better_you/LaunchScreen.storyboard; sourceTree = "<group>"; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = better_you/LaunchScreen.storyboard; sourceTree = "<group>"; };
89C6BE57DB24E9ADA2F236DE /* Pods-better_you-better_youTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-better_you-better_youTests.release.xcconfig"; path = "Target Support Files/Pods-better_you-better_youTests/Pods-better_you-better_youTests.release.xcconfig"; sourceTree = "<group>"; }; 89C6BE57DB24E9ADA2F236DE /* Pods-better_you-better_youTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-better_you-better_youTests.release.xcconfig"; path = "Target Support Files/Pods-better_you-better_youTests/Pods-better_you-better_youTests.release.xcconfig"; sourceTree = "<group>"; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
B6073855E1454671B0D27B34 /* Poppins-Bold.ttf */ = {isa = PBXFileReference; name = "Poppins-Bold.ttf"; path = "../src/assets/fonts/Poppins-Bold.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
428FA2CDECB74070A32B45B2 /* Poppins-Light.ttf */ = {isa = PBXFileReference; name = "Poppins-Light.ttf"; path = "../src/assets/fonts/Poppins-Light.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
EFB9B63E1E8D460B8E4862C5 /* Poppins-Medium.ttf */ = {isa = PBXFileReference; name = "Poppins-Medium.ttf"; path = "../src/assets/fonts/Poppins-Medium.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
E9EF9CFCA8FB4604A36AA796 /* Poppins-Regular.ttf */ = {isa = PBXFileReference; name = "Poppins-Regular.ttf"; path = "../src/assets/fonts/Poppins-Regular.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
F9FA5AFDA23347BEB137F39D /* Poppins-SemiBold.ttf */ = {isa = PBXFileReference; name = "Poppins-SemiBold.ttf"; path = "../src/assets/fonts/Poppins-SemiBold.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
/* End PBXFileReference section */ /* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
...@@ -122,6 +132,7 @@ ...@@ -122,6 +132,7 @@
83CBBA001A601CBA00E9B192 /* Products */, 83CBBA001A601CBA00E9B192 /* Products */,
2D16E6871FA4F8E400B85C8A /* Frameworks */, 2D16E6871FA4F8E400B85C8A /* Frameworks */,
BBD78D7AC51CEA395F1C20DB /* Pods */, BBD78D7AC51CEA395F1C20DB /* Pods */,
17759C362C504706A9A316A9 /* Resources */,
); );
indentWidth = 2; indentWidth = 2;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -148,6 +159,19 @@ ...@@ -148,6 +159,19 @@
path = Pods; path = Pods;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
17759C362C504706A9A316A9 /* Resources */ = {
isa = "PBXGroup";
children = (
B6073855E1454671B0D27B34 /* Poppins-Bold.ttf */,
428FA2CDECB74070A32B45B2 /* Poppins-Light.ttf */,
EFB9B63E1E8D460B8E4862C5 /* Poppins-Medium.ttf */,
E9EF9CFCA8FB4604A36AA796 /* Poppins-Regular.ttf */,
F9FA5AFDA23347BEB137F39D /* Poppins-SemiBold.ttf */,
);
name = Resources;
sourceTree = "<group>";
path = "";
};
/* End PBXGroup section */ /* End PBXGroup section */
/* Begin PBXNativeTarget section */ /* Begin PBXNativeTarget section */
...@@ -244,6 +268,11 @@ ...@@ -244,6 +268,11 @@
files = ( files = (
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
4FA46DCA80144D1E99FBC236 /* Poppins-Bold.ttf in Resources */,
7E5E4AC3FEA6449AB9F3F36E /* Poppins-Light.ttf in Resources */,
56654B86D26448C5968A18AC /* Poppins-Medium.ttf in Resources */,
A75510E63EBB4B1DB5DC9CA9 /* Poppins-Regular.ttf in Resources */,
88ADD77DB4EE47D7AFC2C1E9 /* Poppins-SemiBold.ttf in Resources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</dict> </dict>
</dict> </dict>
<key>NSLocationWhenInUseUsageDescription</key> <key>NSLocationWhenInUseUsageDescription</key>
<string></string> <string/>
<key>UILaunchStoryboardName</key> <key>UILaunchStoryboardName</key>
<string>LaunchScreen</string> <string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key> <key>UIRequiredDeviceCapabilities</key>
...@@ -51,5 +51,13 @@ ...@@ -51,5 +51,13 @@
</array> </array>
<key>UIViewControllerBasedStatusBarAppearance</key> <key>UIViewControllerBasedStatusBarAppearance</key>
<false/> <false/>
<key>UIAppFonts</key>
<array>
<string>Poppins-Bold.ttf</string>
<string>Poppins-Light.ttf</string>
<string>Poppins-Medium.ttf</string>
<string>Poppins-Regular.ttf</string>
<string>Poppins-SemiBold.ttf</string>
</array>
</dict> </dict>
</plist> </plist>
{
"migIndex": 1,
"data": [
{
"path": "src/assets/fonts/Poppins-Bold.ttf",
"sha1": "974b66074f1e265c0d203a4e2989c6120af3bc55"
},
{
"path": "src/assets/fonts/Poppins-Light.ttf",
"sha1": "107454fb84957d1ea4bd4c0335377df253eb2258"
},
{
"path": "src/assets/fonts/Poppins-Medium.ttf",
"sha1": "6575dbf38e9e61beec498e2be61c89d43399db24"
},
{
"path": "src/assets/fonts/Poppins-Regular.ttf",
"sha1": "dd48971530e3f19f7067ad80ce6c215365fe7269"
},
{
"path": "src/assets/fonts/Poppins-SemiBold.ttf",
"sha1": "33cccb49029917a6175e7e7a754e296d518c2710"
}
]
}
module.exports = {
project: {
ios:{},
android:{}
},
assets:['./src/assets/fonts/'],
}
\ No newline at end of file
export const IMAGE={
chatbot:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEA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j7KEJCQPcBSbnOecTjcplrWtFgMkscjw13KJMi2+M+oleuYgpBa2/HPKrxI8ROY55GmWeapLGcQPa0HryWvE9ykW22pVDCTJfdQwyV/ZClHGTUqKFs0tn6AXPouVUroo7s1OQSF6Xc7MTMN4XcG476GZzLzISAVY3Qf6hTzWQ1Hc4eEkEtIPLn8EmXzQ9/HiANnC3PkrM6wuL5ybFQ9IkOpBDBdwklIwAnOyc1ltdjwxuNgN7fd1oFpZie0XJ2uud6uUGJBWifOEJTrZAKVjxE5HNI6ke6p08Mkjxw24rH09VGeaNjO+63zXGwWu12+KJ0TUsvN61y31ErWnGcknkKnUzzSv4b9srDRQp4Iom4277nVSnIsaa2qbBU0mS8xoamoSFKCTyIPUb5qrG9h4b72BuQrCxj++3UjVaWKyx7OypLWpx505efcOVunuT9KlU1T6h13ZAaDYKNPTthGWZOp3KaUumEUIRQhFCEUIRQhFCFoWkF0OlIK0ggKI3APOu3NrLlhe62V9k7Z2ri6VS7NDjxr00o8OzrbIOr2mHCuOdj9ojatepke+A/nB46izvRZcLGtmB4ZaemnqnnFCba5alNXeQI7K1AJdzgpWNwQe+1JURmEoMIueXRN1QiMZbKbBJ7Zbf10tpcviH9axIriVBptsIBUNxrPM05NP+GuGw4HOGt75dErFDx7F0uID7zVqlPeVjuPeG45oSVaG06lKx0A6mstjcTg29rrRe7C0lVZ125XWWiVC4bYYdCdKZdyxqSP5Rv3rUa2GBhY+Ykcm/XRZxdLK7EyIA83fRWmKh7ybaJikOPaAHFIThKj1wO1Zbi3ESzIbLRaDhs7VdGm0NICG0hKEjASBgAVwkk3K6ABkFvXF1FCEUIRQhFCEUIRQhFCEUIRQhFCFo60h1OlxCVp7KTkV1pIzBXCAdVq0w0yMMtIbBOSEJAz8qHPc4943QGhugXWuLqKEIoQihCKEIoQihCKEL//Z"
}
\ No newline at end of file
...@@ -2,6 +2,7 @@ import { useNavigation } from "@react-navigation/core"; ...@@ -2,6 +2,7 @@ import { useNavigation } from "@react-navigation/core";
import React from "react"; import React from "react";
import { View, Text, StyleSheet, TouchableOpacity, Image } from "react-native"; import { View, Text, StyleSheet, TouchableOpacity, Image } from "react-native";
import Icon from "react-native-vector-icons/FontAwesome5"; import Icon from "react-native-vector-icons/FontAwesome5";
import { COLOR } from '../../themes';
export const ChatHeader = () => { export const ChatHeader = () => {
const navigation = useNavigation(); const navigation = useNavigation();
...@@ -12,10 +13,10 @@ export const ChatHeader = () => { ...@@ -12,10 +13,10 @@ export const ChatHeader = () => {
</TouchableOpacity> </TouchableOpacity>
<View style={styles.profileOptions}> <View style={styles.profileOptions}>
<TouchableOpacity style={styles.profile}> <TouchableOpacity style={styles.profile}>
<Image style={styles.image} source={{ uri: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAABIFBMVEX////+vRc1OEnu7/HS09VM7t/k5ef+uwDu8PXv6tcwM0Xu7OP+vABdXmsmKj4tMEO9vsQ0MkT9wSeqq7A7cXXX2Nq2trvizJwiJjt3eYHs7O3+vxzz3azQ1Nr86LspLEAlL0v9+u87Pk/93Zj89N38ylD90Wz+/fj82IdFR1ZP7t/9+un835/t8vy0jC39xT387cj+0nJlaXOGiJDU0ss0K0HX0L3kyY3nyYTeqCD9xDn21IqUlp1RVWL/xBHqxnQ5WWNEsKtFv7c2R1RIzsTtxGT+zln97MXazq/ezKH2wUPxw1vJmiunjVaIbzlBQEdjVkAVKEycfDV5ZTztshwXHDXAmDg+bHNAmJaMcDe0rJtPkZOmgjE8f4LVoiU0IjwDoTSFAAANwklEQVR4nO2dC3faOBbHDSGYGAUTZ9wSXELikAdp01DyaEvJo+82mZ2ZTtttZ3ez8/2/xUq29bAs2QZjTLv6n5OTB8Tox726urqShaYpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKQm0/7DX6w16g0Gv93C/6MbMWL3Nnb1jyymBEvzSdQC/Wzd7O5u9ohs2Cz3cPBjpSCVIZ0GVsLy/jg42HxbdxAza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+0hI90q3S5gAb0tb2ng6D3TAyIEfcdsLifFQT1Hm/fnZpQ21nkz3tiND3hj6KfnnAKwP8DxKKbPLl+cjxfPzleoJ+bjupnZlNSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSSq//AQbbo87jQKpIAAAAAElFTkSuQmCC" }} /> <Image style={styles.image} source={require('../../assets/images/chatbot.png')} />
<View style={styles.usernameAndOnlineStatus}> <View style={styles.usernameAndOnlineStatus}>
<Text style={styles.username}>"test"</Text> <Text style={styles.username}>Chatbot</Text>
<Text style={styles.onlineStatus}>"Text</Text> <Text style={styles.onlineStatus}>AI Automated chatbot</Text>
</View> </View>
</TouchableOpacity> </TouchableOpacity>
<View style={styles.options}> <View style={styles.options}>
...@@ -25,14 +26,14 @@ export const ChatHeader = () => { ...@@ -25,14 +26,14 @@ export const ChatHeader = () => {
<Icon <Icon
name="phone" name="phone"
size={30} size={30}
color={"white"} color={COLOR.white}
/> />
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity style={{ paddingHorizontal: 20 }}> <TouchableOpacity style={{ paddingHorizontal: 20 }}>
<Icon <Icon
name="ellipsis-v" name="ellipsis-v"
size={30} size={30}
color={"white"} color={COLOR.white}
/> />
</TouchableOpacity> </TouchableOpacity>
</View> </View>
...@@ -44,7 +45,7 @@ export const ChatHeader = () => { ...@@ -44,7 +45,7 @@ export const ChatHeader = () => {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
flexDirection: "row", flexDirection: "row",
backgroundColor: "blue", backgroundColor: COLOR.primary,
paddingTop: 10, paddingTop: 10,
paddingBottom: 10, paddingBottom: 10,
}, },
...@@ -62,7 +63,7 @@ const styles = StyleSheet.create({ ...@@ -62,7 +63,7 @@ const styles = StyleSheet.create({
profile: { profile: {
flexDirection: "row", flexDirection: "row",
alignItems: "center", alignItems: "center",
borderColor: "#fff", borderColor: COLOR.white,
flex: 4, flex: 4,
}, },
image: { image: {
...@@ -76,12 +77,12 @@ const styles = StyleSheet.create({ ...@@ -76,12 +77,12 @@ const styles = StyleSheet.create({
paddingHorizontal: 10, paddingHorizontal: 10,
}, },
username: { username: {
color: "white", color: COLOR.white,
fontSize: 18, fontSize: 18,
fontWeight: "bold", fontWeight: "bold",
}, },
onlineStatus: { onlineStatus: {
color: "white", color: COLOR.white,
fontSize: 16, fontSize: 16,
}, },
options: { options: {
......
import axios from 'axios'; import axios from 'axios';
import React, { useCallback, useEffect, useState } from 'react' import React, { useCallback, useEffect, useState } from 'react'
import { Text, View } from 'react-native' import { Text, View } from 'react-native'
import { GiftedChat } from 'react-native-gifted-chat'; import { Bubble, GiftedChat, Send } from 'react-native-gifted-chat';
import { sendToRasa } from '../api'; import { sendToRasa } from '../api';
import { ChatHeader } from '../components/chatbot/ChatHeader' import { ChatHeader } from '../components/chatbot/ChatHeader'
import uuid from 'react-native-uuid';
import {IMAGE} from '../assets/images/chatbotImage'
import { COLOR, FONT } from '../themes';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons'
export const Chatbot = () => { export const Chatbot = () => {
const [messages, setMessages] = useState([]); const [messages, setMessages] = useState([]);
const BOT_USER = {
_id: 2,
name: 'FAQ Bot',
avatar: IMAGE.chatbot
};
const USER = {
_id:1,
name: 'USER',
};
useEffect(() => { useEffect(() => {
// setMessages([ setMessages([
// { {
// _id: 1, _id: 1,
// text: 'Hello how is going', text: `Hi! I am the FAQ bot 🤖 from TEST.\n\nHow may I help you with today?`,
// createdAt: new Date(), createdAt: new Date(),
// sendTo:2, user: BOT_USER
// sentBy:1, },
// user: {
// _id: 1, ])
// name: 'React Native',
// avatar: 'https://placeimg.com/140/140/any',
// },
// },
// {
// _id: 2,
// text: 'Hello developer',
// createdAt: new Date(),
// user: {
// _id: 2,
// name: 'React Native',
// avatar: 'https://placeimg.com/140/140/any',
// },
// },
// {
// _id: 3,
// text: 'Hello bot',
// createdAt: new Date(),
// user: {
// _id: 1,
// name: 'React Native',
// avatar: 'https://placeimg.com/140/140/any',
// },
// },
// {
// _id: 4,
// text: 'Hello user',
// createdAt: new Date(),
// user: {
// _id: 2,
// name: 'React Native',
// avatar: 'https://placeimg.com/140/140/any',
// },
// },
// ])
}, []) }, [])
const onSend = useCallback(async(msg = []) => { const onSend = useCallback(async(msg = []) => {
...@@ -64,13 +43,10 @@ export const Chatbot = () => { ...@@ -64,13 +43,10 @@ export const Chatbot = () => {
res.data.map((d)=>{ res.data.map((d)=>{
console.log(d.text); console.log(d.text);
const rp = { const rp = {
_id:uuid.v4(),
text: d.text, text: d.text,
createdAt: new Date(), createdAt: new Date(),
user: { user: BOT_USER
_id: 1,
name: 'React Native',
avatar: 'https://placeimg.com/140/140/any',
},
} }
reply.push(rp) reply.push(rp)
} }
...@@ -82,15 +58,62 @@ export const Chatbot = () => { ...@@ -82,15 +58,62 @@ export const Chatbot = () => {
} }
}, []) }, [])
//Customize bubbles
const renderBubble = (props)=>{
return(
<Bubble
{...props}
wrapperStyle={{
right:{
backgroundColor: COLOR.primary
},
left:{
backgroundColor: COLOR.white
}
}}
textStyle={{
right:{
fontFamily:FONT.Regular,
color:COLOR.white,
fontSize:14,
},
left:{
fontFamily:FONT.Regular,
fontSize:14,
color:COLOR.greyFont
}
}}
/>
)
}
//Change the send button
const renderSend = (props) => {
return(
<Send {...props}>
<View>
<MaterialCommunityIcons name='send-circle' size={42} style={{marginBottom:5, marginRight:5}} color={COLOR.primary}/>
</View>
</Send>
)
}
return ( return (
<View style={{flex:1}}> <View style={{flex:1}}>
<ChatHeader/> <ChatHeader/>
<GiftedChat <GiftedChat
messages={messages.reverse()} messages={messages.reverse()}
onSend={msg => onSend(msg)} onSend={msg => onSend(msg)}
user={{ user={USER}
_id: "132reweewa52332525252twe", alwaysShowSend={true}
}} loadEarlier={true}
renderAvatarOnTop={true}
renderBubble={renderBubble}
renderSend={renderSend}
scrollToBottom
/> />
</View> </View>
) )
......
...@@ -2,13 +2,14 @@ ...@@ -2,13 +2,14 @@
import { useNavigation } from '@react-navigation/core'; import { useNavigation } from '@react-navigation/core';
import React, { Component } from 'react'; import React, { Component } from 'react';
import { View, Text, StyleSheet, Button } from 'react-native'; import { View, Text, StyleSheet, Button } from 'react-native';
import { FONT } from '../themes';
// create a component // create a component
export const Home = () => { export const Home = () => {
const navigation = useNavigation(); const navigation = useNavigation();
return ( return (
<View style={styles.container}> <View style={styles.container}>
<Text style={{fontSize:20}}>Home</Text> <Text style={{fontSize:20, fontFamily:FONT.Regular}}>Hoame</Text>
<Button title="Chatbot" onPress={()=> navigation.navigate('Chatbot')}/> <Button title="Chatbot" onPress={()=> navigation.navigate('Chatbot')}/>
</View> </View>
); );
...@@ -18,6 +19,7 @@ export const Home = () => { ...@@ -18,6 +19,7 @@ export const Home = () => {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
flex: 1, flex: 1,
fontFamily:FONT.Regular,
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
backgroundColor: '#2c3e50', backgroundColor: '#2c3e50',
......
...@@ -8,19 +8,20 @@ import { COLOR } from '../themes'; ...@@ -8,19 +8,20 @@ import { COLOR } from '../themes';
const Square = ({ isLight, selected }) => { const Square = ({ isLight, selected }) => {
let backgroundColor; let backgroundColor;
let width;
if (isLight) { if (isLight) {
backgroundColor = selected ? COLOR.primary : 'rgba(0, 0, 0, 0.3)'; backgroundColor = selected ? COLOR.primary : 'rgba(0, 0, 0, 0.3)';
width = selected ? 40 : 8
} else { } else {
backgroundColor = selected ? COLOR.primary : 'rgba(255, 255, 255, 0.5)'; backgroundColor = selected ? COLOR.primary : 'rgba(255, 255, 255, 0.5)';
} }
return ( return (
<View <View
style={{ style={{
width: 30, width,
height: 6, height: 8,
padding:0, marginHorizontal:1,
marginHorizontal:0, borderRadius:8,
Radius:6,
backgroundColor, backgroundColor,
}} }}
/> />
......
export const COLOR = { export const COLOR = {
primary: '#14db98', primary: '#12cdc2',
onPrimary: '#fff', onPrimary: '#fff',
surface: '#fff', surface: '#fff',
onSurface: '#000', onSurface: '#000',
backgroundOnBoard: 'white', backgroundOnBoard: 'white',
white:"white" white:"white",
}; greyFont:'#2e2e2e'
\ No newline at end of file };
export const FONT = {
Regular: "Poppins-Regular",
Bold: 'Poppins-Bold',
Light:'Poppins-Light',
Medium:'Poppins-Medium',
SemiBold:'Poppins-SemiBold'
}
\ No newline at end of file
...@@ -5606,6 +5606,11 @@ react-native-typing-animation@0.1.7: ...@@ -5606,6 +5606,11 @@ react-native-typing-animation@0.1.7:
resolved "https://registry.yarnpkg.com/react-native-typing-animation/-/react-native-typing-animation-0.1.7.tgz#8f2cf08d9400ae543a110292eb7d71523dda5528" resolved "https://registry.yarnpkg.com/react-native-typing-animation/-/react-native-typing-animation-0.1.7.tgz#8f2cf08d9400ae543a110292eb7d71523dda5528"
integrity sha512-4H3rF9M+I2yAZpYJcY0Mb29TXkn98QK12rrKSY6LZj1BQD9NNmRZuNXzwX4XHapsIz+N/J8M3p27FOQPbfzqeg== integrity sha512-4H3rF9M+I2yAZpYJcY0Mb29TXkn98QK12rrKSY6LZj1BQD9NNmRZuNXzwX4XHapsIz+N/J8M3p27FOQPbfzqeg==
react-native-uuid@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/react-native-uuid/-/react-native-uuid-2.0.1.tgz#ed4e2dfb1683eddb66967eb5dca140dfe1abddb9"
integrity sha512-cptnoIbL53GTCrWlb/+jrDC6tvb7ypIyzbXNJcpR3Vab0mkeaaVd5qnB3f0whXYzS+SMoSQLcUUB0gEWqkPC0g==
react-native-vector-icons@^9.2.0: react-native-vector-icons@^9.2.0:
version "9.2.0" version "9.2.0"
resolved "https://registry.yarnpkg.com/react-native-vector-icons/-/react-native-vector-icons-9.2.0.tgz#3c0c82e95defd274d56363cbe8fead8d53167ebd" resolved "https://registry.yarnpkg.com/react-native-vector-icons/-/react-native-vector-icons-9.2.0.tgz#3c0c82e95defd274d56363cbe8fead8d53167ebd"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment