Skip to content

Feature - Anchor Scroll Support #2403

Description

@noumantahir

My assessments suggest It may be possible, but it will require custom implementation, there is no direct way of doing it.

Steps:

  1. update render-helper to parse tag id
  2. pass parent scroll view reference html renderer
  3. use native props to get position of each tag that has an id passed
  4. if anchor link is pressed, check for element position from map of positions
  5. scroll to that position using passed parent reference...
    I was trying to hack around to put together a prototype for testing, but got stack at extraction position of element passed with an id.. but if we want to implement this, I can try to dig a bit more and make it work.

post reference
https://ecency.com/hive-125125/@chaosmagic23/guide-for-using-anchor-in

branch
https://github.com/ecency/ecency-mobile/tree/nt/anchor-scroll

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions