React-native-tab-view: Discussion about custom view for lazy loading

Created on 30 Sep 2017  路  3Comments  路  Source: satya164/react-native-tab-view

Hey everyone, I'm currently working on one app with 4 tabs and we've tried lazy: true, but basically we got an empty screen. What do you people think about adding a new option like lazyView or something related in order to be rendered until the view is loaded? Does it make sense?

All 3 comments

You mean like a placeholder? If so, I think the whole point of the lazy it's to not render anything. Tho, I like the idea.

I didn't try this. But, maybe if you put your common placeholder view "under" the TabView one it'll show while render is not ready. Or maybe not 馃拋

cc @satya164

Yeah, like a placeholder 馃槃 , I think could be a good addition for project that have heavy rendering. This feature could be added without cause any damage for other pieces.

I'll try your suggestion, but it's a bit hackish 馃檴

Thank you @sospedra 鉂わ笍

This can be done in the userland using onPositionChange. I don't think the library needs to have this feature inbuilt.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

QuentinBrosse picture QuentinBrosse  路  4Comments

itzsaga picture itzsaga  路  3Comments

karthikeyansundaram2 picture karthikeyansundaram2  路  3Comments

glennvgastel picture glennvgastel  路  3Comments

ahmedrowaihi picture ahmedrowaihi  路  3Comments