Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
240
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2022-240
240
Commits
e89570ab
Commit
e89570ab
authored
Oct 12, 2022
by
Malsha Rathnasiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix chat typing issue
parent
f40a894b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
MobileApp/api/constants.js
MobileApp/api/constants.js
+1
-1
MobileApp/screens/TabOneScreen.jsx
MobileApp/screens/TabOneScreen.jsx
+8
-6
backend/db.sqlite3
backend/db.sqlite3
+0
-0
No files found.
MobileApp/api/constants.js
View file @
e89570ab
// export const BACKEND_URL = "http://192.168.8.103:8000"
import
{
Platform
}
from
'
react-native
'
export
const
BACKEND_ADDRESS
=
Platform
.
OS
==
'
web
'
?
"
http://127.0.0.1:8000
"
:
"
https://
cbc3
-2401-dd00-10-20-7542-a875-30e7-8931.ap.ngrok.io
"
export
const
BACKEND_ADDRESS
=
Platform
.
OS
==
'
web
'
?
"
http://127.0.0.1:8000
"
:
"
https://
4c61
-2401-dd00-10-20-7542-a875-30e7-8931.ap.ngrok.io
"
export
const
BACKEND_URL
=
`
${
BACKEND_ADDRESS
}
`
MobileApp/screens/TabOneScreen.jsx
View file @
e89570ab
import
React
,
{
useEffect
,
useState
}
from
'
react
'
import
{
FlatList
,
StyleSheet
,
TextInput
,
SectionList
,
Button
,
ActivityIndicator
,
View
,
Text
}
from
'
react-native
'
;
import
{
FlatList
,
StyleSheet
,
TextInput
,
SectionList
,
Button
,
ActivityIndicator
,
View
,
Text
,
SafeAreaView
}
from
'
react-native
'
;
import
{
AudioRecorder
}
from
'
../components/AudioRecorder
'
;
import
_
from
'
lodash
'
import
EditScreenInfo
from
'
../components/EditScreenInfo
'
;
// import { Text, View } from '../components/Themed';
import
{
RootTabScreenProps
}
from
'
../types
'
;
...
...
@@ -13,7 +14,7 @@ import { CONVO_DEFAULT_ICON_COLOR, styles } from '../util/styles';
import
{
StatusBar
}
from
'
expo-status-bar
'
;
import
Slider
from
'
@react-native-community/slider
'
;
import
{
PlayMessage
}
from
'
../components/PlayMessage
'
;
import
{
Toast
}
from
'
native-base
'
;
import
{
Toast
,
Input
}
from
'
native-base
'
;
import
{
ERROR_TOAST_PROPS
}
from
'
../util/util
'
;
import
AsyncStorage
from
'
@react-native-async-storage/async-storage
'
;
...
...
@@ -237,12 +238,13 @@ export default function ChatScreen({ navigation }) {
</
View
>
<
View
style=
{
{
flex
:
0.075
,
padding
:
0
,
backgroundColor
:
'
white
'
}
}
>
<
View
style=
{
{
flexDirection
:
'
row
'
,
display
:
'
flex
'
,
height
:
'
100%
'
}
}
>
<
View
style=
{
{
flex
:
0.8
,
height
:
'
100%
'
,
flexDirection
:
'
column-reverse
'
}
}
>
<
TextInput
<
SafeArea
View
style=
{
{
flex
:
0.8
,
height
:
'
100%
'
,
flexDirection
:
'
column-reverse
'
}
}
>
{
/*
<TextInput
style={{ borderWidth: 2, borderColor: 'gray', color: 'black', marginHorizontal: 5, paddingHorizontal: 10, borderRadius: 5 }}
defaultValue={input}
onChange=
{
(
e
)
=>
setInput
(
e
.
target
.
value
)
}
></
TextInput
>
</
View
>
onChange={(e) => setInput(e.target.value)}></TextInput> */
}
<
Input
style=
{
{}
}
value=
{
input
}
w=
"100%"
onChangeText=
{
setInput
}
placeholder=
""
/>
</
SafeAreaView
>
{
input
?
<
View
style=
{
{
flex
:
0.2
,
height
:
'
100%
'
,
flexDirection
:
'
column-reverse
'
}
}
>
<
Button
style=
{
{
width
:
'
100%
'
,
height
:
'
100%
'
}
}
title=
'Send'
onPress=
{
onSendPress
}
/>
...
...
backend/db.sqlite3
View file @
e89570ab
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment