Skip to content

Commit

Permalink
Fix/reviewWrite
Browse files Browse the repository at this point in the history
  • Loading branch information
sjsjmine129 committed Jun 1, 2024
1 parent 51d9df4 commit 076a63b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/assets/svg.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions src/screens/detail/ReviewWriteScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
TextInput,
FlatList,
Pressable,
TouchableWithoutFeedback,
Alert,
} from 'react-native';
import {
Expand Down Expand Up @@ -141,10 +142,12 @@ export default function ReviewWriteScreen(props) {
<Header title={'리뷰 쓰기'} isBackButton={true} />
<View contentContainerStyle={styles.entire}>
<View style={styles.headerContainer}>
<Text style={styles.storeName}>{storeData.name}</Text>
<Text style={styles.storeName} numberOfLines={1}>
{storeData.name}
</Text>
<View style={styles.starContainer}>
{[...Array(5)].map((_, index) => (
<TouchableOpacity
<TouchableWithoutFeedback
key={index}
onPress={() => {
setRating(index + 1);
Expand All @@ -158,9 +161,9 @@ export default function ReviewWriteScreen(props) {
}
width="24"
height="24"
style={{marginLeft: 7}}
style={{marginLeft: 2}}
/>
</TouchableOpacity>
</TouchableWithoutFeedback>
))}
</View>
</View>
Expand Down Expand Up @@ -254,6 +257,7 @@ const styles = StyleSheet.create({
fontSize: 22,
fontWeight: 'bold',
color: COLOR_TEXT_BLACK,
maxWidth: (windowWidth * 3) / 5,
},
starContainer: {
flexDirection: 'row',
Expand Down

0 comments on commit 076a63b

Please sign in to comment.