The NativeBase Content tag does not render when I wrap it with my custom component. Here is a striped down version of that component called Test that does not work either.
What am I doing wrong ?
Thanks,
Warren
// Custom component called Test
import React, { Component } from "react";
import {
Text,
View
} from "native-base";
class Test extends Component {
constructor(props) {
super(props);
}
render() {
// NativeBase Content tag in this.props.children does not render
// But sibling and parent tags do
return (
THIS SHOWS
{ this.props.children }
);
}
}
export default Test;
// These are some of the tags in this.props.children above
// (THIS SHOWS)
// SHOW (THIS SHOWS)
// (THIS DOES NOT SHOW)
// SHOW (THIS DOES NOT SHOW)
//
//