See the Status document for the status of features.
The One Vite Plugin automates away much of the setup & boilerplate required for cross-platform React Native & web development.
Out of the box, the One Vite plugin does the following:
./app folderwatchFile for instant content updates during developmentdeps option that allows for easy node_module patching.env file into process.env before running anything using dotenvtsconfig.json if it doesn’t exist?imagedata imports for automatic image dimensions and blur placeholdersweb|native|ios|android for extensions ts|tsx|js|mjs, eg .ios.tsloader() just like pagesuseMatches hook to access all matched route datauseMatch to find a specific route’s loader data by route IDusePageMatch to get the current page’s matchuseSearchParams for URLSearchParams API<Protected /> component for declarative route guardinguseBlocker hook for blocking navigation with confirmationvalidateParams and validateRouteserve command that sets up a Hono server for productionredirects optiongenerateStaticParams export for SSG and SSR routesquery-string and url-parse libraries to save ~20KbVXRN_ANALYZE_BUNDLE=1?imagedata importsEdit this page on GitHub.