Unverified Commit 3922fa05 authored by Raibima Putra's avatar Raibima Putra Committed by GitHub

with-react-native-web: move meta viewport to _app.js (#15945)

parent e18f74fe
import * as React from 'react'
import Head from 'next/head'
function MyApp({ Component, pageProps }) {
return (
<>
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</Head>
<Component {...pageProps} />
</>
)
}
export default MyApp
...@@ -26,9 +26,7 @@ export default class MyDocument extends Document { ...@@ -26,9 +26,7 @@ export default class MyDocument extends Document {
render() { render() {
return ( return (
<html style={{ height: '100%' }}> <html style={{ height: '100%' }}>
<Head> <Head />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</Head>
<body style={{ height: '100%', overflow: 'hidden' }}> <body style={{ height: '100%', overflow: 'hidden' }}>
<Main /> <Main />
<NextScript /> <NextScript />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment