Reorganize monorepo structure

* Move all config files to './configs'
* Simplify './scripts' folder.
This commit is contained in:
Nicolas Gallagher
2022-06-30 23:17:16 -07:00
parent d31a8a1ec1
commit f81095442f
140 changed files with 110 additions and 98 deletions
+25
View File
@@ -0,0 +1,25 @@
import Document, { Html, Head, Main, NextScript } from 'next/document';
import { AppRegistry } from 'react-native';
export default class MyDocument extends Document {
static async getInitialProps(ctx) {
const { renderPage } = ctx;
AppRegistry.registerComponent('rn', () => Main);
const { getStyleElement } = AppRegistry.getApplication('rn');
const page = await renderPage();
const styles = getStyleElement();
return { ...page, styles };
}
render() {
return (
<Html>
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}