Skip to content

Commit

Permalink
fix: convert toc link to locator to fix navigation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
adesege committed Jun 12, 2023
1 parent a0e4bf3 commit 77eb4f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/components/Reader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const Reader: React.FC = () => {
<View style={styles.button}>
<TableOfContents
items={toc}
onPress={(loc) => setLocation(loc)}
onPress={(loc) => setLocation({ href: loc.href, type: 'application/xhtml+xml', title: loc.title })}
/>
</View>
<View style={styles.button}>
Expand Down

0 comments on commit 77eb4f5

Please sign in to comment.