Skip to content

Custom Render Day - Scroll to offset issue #2

@andreabertin

Description

@andreabertin

Hi,

I am using your widget and its working fine, but I am currently experimenting an issue customizing the day format.
I need to change the format from M/D to D/M so as per example I set the renderDay with a custom template and works, then I found out the "scroll to" feature is not working anymore. Normally when I click on the day on the top bar the calendar scrolls to the selected day.. looking at the code it seems to work thanks to

onLayout= {event => { offsets[i] = event.nativeEvent.layout.y }}

in the example this event is no more..

I tried adding it in the custom view but doesn't work yet (since offset is local to createWeekdays).

I tried using dayViewOffsets also, but got the same error..

I am probably missing something, could you please help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions