Khaledgarbaya/ContentfulReactNative-boilerplate

Grabbing ID as well as fields

Closed this issue · 2 comments

How would I grab the ID of a content row along with the fields? I can reference them in the

response.items.map

function by doing something like

post.sys.id

I can grab all of the actual post fields I want to render in a list view from post.fields and returning that in that particular function, but then am left without an ID to use to link to the actual content.

Nevermind. I was running into problems since the initial empty rows don't have data like post.sys.id, but if I check for it then get past it initially, things seem to work.

Hi @slawder sorry for the late response, Glad it worked for you.
Feel free to create an issue anytime