Skip to content

Commit

Permalink
chore: add 'ja' renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorKhramtsov committed Jun 25, 2024
1 parent a86f298 commit 0409313
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/CustomRenderer/renderers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ const renderers = {
kanji: getGenericRenderer(Colors.pink),
radical: getGenericRenderer(Colors.blue),
reading: getGenericRenderer(Colors.gray55),
ja: ({ text, style }: { text: string; style?: TextStyle }) => (
<Text accessibilityLanguage='ja' style={style}>
{text}
</Text>
),
}

const styles = StyleSheet.create({
Expand Down

0 comments on commit 0409313

Please sign in to comment.