Skip to content

Commit

Permalink
#1 - Add reply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
L committed Nov 22, 2021
1 parent 22e8bf1 commit 0815f6b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/components/ReviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
TouchableOpacity,
GestureResponderEvent,
} from 'react-native'
import { Stars } from '.'
import { Stars } from './Stars'

const cardHeaderHeight = 50

Expand Down
50 changes: 47 additions & 3 deletions packages/components/src/features/review/Review.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import React, { Component } from 'react'
import { View, TextInput } from 'react-native'
import {
View,
Text,
TouchableOpacity,
TextInput,
StyleSheet,
ScrollView,
} from 'react-native'
import { useSelector, useDispatch } from 'react-redux'
import { BottomTabNavigationProp } from '@react-navigation/bottom-tabs'

Expand All @@ -17,12 +24,49 @@ export default ({ navigation }: Props) => {
return (
<View>
<ReviewCard
title="John Doe 222222"
title="John Doe"
subtitle="2 days ago"
description="Food was great as always, highly recommend this place! Will definitely come back soon. Only note is to keep the music a little less loud."
fullscreen
/>
<TextInput />
<ScrollView style={styles.replyOptions} horizontal>
<TouchableOpacity style={styles.replyOption}>
<Text style={styles.replyOptionText}>Thank you John!</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.replyOption}>
<Text style={styles.replyOptionText}>Thanks John!</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.replyOption}>
<Text style={styles.replyOptionText}>Many thanks John!</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.replyOption}>
<Text style={styles.replyOptionText}>Appreciate it John!</Text>
</TouchableOpacity>
</ScrollView>
<TextInput placeholder="Reply.." style={styles.textInput} multiline />
</View>
)
}

const styles = StyleSheet.create({
textInput: {
fontSize: 14,
backgroundColor: 'white',
padding: 15,
},
replyOptions: {
flexDirection: 'row',
padding: 15,
},
replyOption: {
flexDirection: 'row',
backgroundColor: '#A9A9A9',
borderRadius: 8,
padding: 8,
marginHorizontal: 5,
},
replyOptionText: {
fontWeight: 'bold',
color: 'white',
},
})

0 comments on commit 0815f6b

Please sign in to comment.