Add react-native auto-selection (still need typescript types)

This commit is contained in:
Zoe Roux
2022-11-12 01:56:12 +09:00
parent eb3765e448
commit 48666abc24
15 changed files with 23 additions and 82 deletions
-17
View File
@@ -1,17 +0,0 @@
//
// Copyright (c) Zoe Roux and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
//
import { StyleRegistryProvider } from "yoshiki";
import type { AppProps } from "next/app";
const App = ({ Component, pageProps }: AppProps) => {
return (
<StyleRegistryProvider>
<Component {...pageProps} />
</StyleRegistryProvider>
);
};
export default App;
@@ -3,7 +3,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for details.
//
import { StyleRegistryProvider, createStyleRegistry, useStyleRegistry } from "yoshiki";
import { StyleRegistryProvider, createStyleRegistry } from "yoshiki";
import Document, { DocumentContext } from "next/document";
Document.getInitialProps = async (ctx: DocumentContext) => {