@@ -126,7 +126,7 @@ section.
126126< Section arrow>
127127```
128128
129- Checkamrk can also be applied by adding the ` selected ` prop on the Item.
129+ Checkmark can also be applied by adding the ` selected ` prop on the Item.
130130
131131``` jsx
132132< Item selected>
@@ -137,6 +137,36 @@ Checkamrk can also be applied by adding the `selected` prop on the Item.
137137For a full list of props on all components check out
138138[ the typescript definitions file] ( ./src/index.d.ts ) .
139139
140+
141+ ### Methods
142+
143+ #### ` scrollTo() `
144+
145+ Scrolls to a set of coordinates on the tableview.
146+
147+ ``` ts
148+ /**
149+ * @param x Horizontal pixels to scroll
150+ * @param y Vertical pixels to scroll
151+ * @param animated With animation or not
152+ */
153+ scrollTo (x : number , y : number , animated : boolean ): void ;
154+ ```
155+
156+ #### ` scrollToIndex() `
157+
158+ Scroll to an item in a section
159+
160+ ``` ts
161+ /**
162+ * @param params scroll params
163+ * @param params.index index of the cell
164+ * @param params.section index of the section @default 0
165+ * @param params.animated scroll with animation @default true
166+ */
167+ scrollToIndex (params : { index: number , section?: number , animated?: boolean }): void ;
168+ ```
169+
140170### List item format
141171
142172Items in the list can be either ` TableView.Item ` or ` TableView.Cell ` . An ` Item `
@@ -366,7 +396,7 @@ Catalog". In this case an `imageWidth` prop is recommended.
366396;< Item image= " icon-success.png" imageWidth= {40 } / >
367397```
368398
369- Alernatively , you can ` require ` the image from your local app code. In this case
399+ Alternatively , you can ` require ` the image from your local app code. In this case
370400an ` imageWidth ` is unnecessary.
371401
372402``` jsx
0 commit comments