mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Render UIExplorer examples functionally to handle landscape orientation correctly
Reviewed By: javache Differential Revision: D3810007 fbshipit-source-id: ff8dfa4b326bb385ea91592b374f5a45a6d4ff64
This commit is contained in:
committed by
Facebook Github Bot
parent
3940f06211
commit
6c909ef80d
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user