Skip to content

Commit

Permalink
[fix] 備考の文字を折り返すように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
TkymHrt committed Mar 28, 2024
1 parent dbab5d6 commit 9b27efc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ const MyDocument = (props: MyDocumentProps) => (
<Text>備考</Text>
</View>
<View style={styles.textArea}>
<Text>{props.remarks}</Text>
{(props.remarks.match(/.{1,40}/g) || []).map((chunk, index) => (
<Text key={index}>{chunk}</Text>
))}
</View>
</View>
</View>
Expand Down

0 comments on commit 9b27efc

Please sign in to comment.