import React from 'react'; import Head from 'next/head'; import App from 'next/app'; import 'react-tabs/style/react-tabs.css'; class CustomApp extends App { // Only uncomment this method if you have blocking data requirements for // every single page in your application. This disables the ability to // perform automatic static optimization, causing every page in your app to // be server-side rendered. // // static async getInitialProps(appContext) { // // calls page's `getInitialProps` and fills `appProps.pageProps` // const appProps = await App.getInitialProps(appContext); // // return { ...appProps } // } render() { const { Component, pageProps } = this.props; const pageName = this.props.router.route.substr(1); let title = ''; if (pageName === '') { title = 'react-native-csv'; } else if (pageName === 'docs') { title = 'Documentation'; } return (