Fix RNTester Camera Example

Summary: Fixes a bug introduced with the example filtering in D13561744 causing the Camera Roll example to not show any pictures

Reviewed By: JoshuaGross

Differential Revision: D13622124

fbshipit-source-id: a5863dcdd9f89ae1373910f25b38e4a322796dbe
This commit is contained in:
Rick Hanlon 2019-01-10 15:43:45 -08:00 committed by Facebook Github Bot
parent 6c501eb666
commit 5d1b27b017
1 changed files with 5 additions and 2 deletions

View File

@ -35,8 +35,11 @@ class RNTesterExampleContainer extends React.Component {
render(): React.Element<any> { render(): React.Element<any> {
if (this.props.module.examples.length === 1) { if (this.props.module.examples.length === 1) {
const Example = this.props.module.examples[0].render; return (
return <Example />; <RNTesterPage title={this.props.title}>
{this.renderExample(this.props.module.examples[0])}
</RNTesterPage>
);
} }
const filter = ({example, filterRegex}) => filterRegex.test(example.title); const filter = ({example, filterRegex}) => filterRegex.test(example.title);