Render UIExplorer examples functionally to handle landscape orientation correctly

Reviewed By: javache

Differential Revision: D3810007

fbshipit-source-id: ff8dfa4b326bb385ea91592b374f5a45a6d4ff64
This commit is contained in:
Mehdi Mulani
2016-09-02 14:43:44 -07:00
committed by Facebook Github Bot
parent 3940f06211
commit 6c909ef80d
5 changed files with 76 additions and 70 deletions
@@ -31,8 +31,6 @@ const TouchableHighlight = require('TouchableHighlight');
const View = require('View');
const UIExplorerActions = require('./UIExplorerActions');
const createExamplePage = require('./createExamplePage');
import type {
UIExplorerExample,
} from './UIExplorerList.ios';
@@ -59,12 +57,6 @@ class UIExplorerExampleList extends React.Component {
super(props);
}
static makeRenderable(example: any): ReactClass<any> {
return example.examples ?
createExamplePage(null, example) :
example;
}
render(): ?ReactElement<any> {
const filterText = this.state.filter || '';
const filterRegex = new RegExp(String(filterText), 'i');