slorber / react-native-scroll-into-view

Scroll a ReactNative View into the visible screen. Similar to DOMElement.scrollIntoView() browser function.
https://thisweekinreact.com
MIT License
417 stars 13 forks source link

Non TS examples #12

Closed alz10 closed 4 years ago

alz10 commented 4 years ago

can you make an examples like the normal code in React? Sorry beginner here, I don't understand how this TS works

I need to the Sections example.

slorber commented 4 years ago

Hi, can you tell me what exactly you don't understand?

With TS you just have to remove the types

Regarding the sections example, there are very few types to remove, I think it should be easy to understand, unless you explain why.

https://github.com/slorber/react-native-scroll-into-view/blob/master/example/screens/SectionsScreen.tsx