conorhastings / conorhastings/react-native-syntax-highlighter
Using syntax-highlighter inside a scrollview
- Dominant language
- JavaScript
- Stars
- 184
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I need to render multiple `SyntaxHighlighter` components inside a parent scrollview based on the data I receive.
While embedding even a single `SyntaxHighlighter` component in a scrollview, the scrolling seems to be messed up. And I come down to a state where I can only scroll within the highlighter but not on my original scrollview. Once reaching this state, I am not able to move anywhere in the scrollview and get stuck.
Any best practices to resolve this, for supporting scrolling views.
Thank you,
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with a SyntaxHighlighter inside a parent scrollview, including the reported multiple-component case. Read the repository's SyntaxHighlighter scrolling behavior and React Native scroll handling, then verify that the parent scrollview remains usable instead of trapping scrolling inside the highlighter.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100