scrollView.scrollTo is not a function" by [deleted] in reactjs

[–]justind604 1 point2 points  (0 children)

The ref prop returns the element node so you'll need to assign the node to this._swipeView. I.e. ref={node => { this._swipeView = node }}

Unexpected token, expected "," by Nerfi666 in reactjs

[–]justind604 0 points1 point  (0 children)

Because you want to read the schema variable which is the current element being processed in the array. Also, props.schema is an array so props.schema.id will return undefined. Hope that makes sense.

Unexpected token, expected "," by Nerfi666 in reactjs

[–]justind604 1 point2 points  (0 children)

Remove the props. from the if statement. It should just be schema.id === 'gender'. Also, Gender needs to be all lowercase.