Vue Native template compiler, part of the Vue Native ecosystem that enables Vue.js developers to build native mobile apps using React Native under the hood. The current stable version is 0.3.1, released in 2020. It compiles Vue templates into React Native components at build time. Key differentiators: it allows using Vue syntax (v-if, v-for, etc.) on React Native, and is the core compiler for vue-native-scripts. Alternatives include React Native itself or using Vue with a WebView approach. This package is auto-generated from the vue-native-core monorepo.
npm install vue-native-template-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the default compiler export to convert a Vue template string into React Native components.
Manually import these components from 'react-native' and register them as Vue components.
Evaluate if Vue Native is still suitable for new projects; consider migrating to React Native or other frameworks.
Ensure vue@2.2.6 is installed as a dependency.
Upgrade to v0.1.3 or later.
Run 'npm install vue-native-template-compiler' or add it to package.json.
Use Node.js 14+ or set 'type': 'module' correctly.
Use 'import compiler from "vue-native-template-compiler"' or 'const compiler = require("vue-native-template-compiler")'.