Test Renderer: testRenderer.toJSON()

Return an object representing the rendered tree. This tree only contains the platform-specific nodes like <div> or <View> and their props, but doesn’t contain any user-written components. This is handy for snapshot testing.

Related concepts

testRenderer.toJSON()

Test Renderer: testRenderer.toJSON() — Structure map

Clickable & Draggable!

Test Renderer: testRenderer.toJSON() — Related pages: