mirror of
https://github.com/zoriya/yoshiki.git
synced 2026-06-07 12:15:23 +00:00
Add react-native auto-selection (still need typescript types)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user