Good evening from my side, new to capacitorjs and ionic framework. currently converted a react project of mine that has multiple views/ pages in an android app. but once i make use of ionic ui library to create a ionHeader component that would only display when on native devices, the app stopped scrolling
import { Outlet } from “react-router-dom”
import Navbar from “@/components/Navbar”;
import Footer from “@/components/Footer”;
import { isNativePlatform } from “@/utils/platform”;
import Header from “@/components/ionic/Header”;
const Layout = () => {
const isNative = isNativePlatform();
return (
<>
{isNative ? : }
</>
)
}
export default Layout
the Platform util code
// src/utils/platform.ts
import { Capacitor } from ‘@capacitor/core’;
export const isNativePlatform = () => {
return Capacitor.isNativePlatform();
};
please help me in resolving this issue