Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is "require UIExplorerBlock" and "require UIExplorerPage" required for some Components?

Tags:

react-native

In react-native for components such as ToolbarAndroid, Switch, ProcessBar, ToastAndroid, ListView, etc. the following is required and I have not been able to find an explanation why this is necessary:

var UIExplorerBlock = require('./UIExplorerBlock');
var UIExplorerPage = require('./UIExplorerPage');

and respectively

<UIExplorerPage>
  <UIExplorerBlock>
    ..
  </UIExplorerBlock>
</UIExplorerPage>
like image 323
olafguesswhapp Avatar asked Nov 06 '15 14:11

olafguesswhapp


1 Answers

Those components are part of the UI Explorer sample application. They are using them to keep the sample code DRY.

You should not be using the UIExplorer* components in your own code.

like image 56
jevakallio Avatar answered Oct 19 '22 02:10

jevakallio