Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@vnxjs/components-react
Advanced tools
Vnmf component library (React version).
@vnxjs/components
uses the Stencil framework based on Web Components
for development, there will be compatibility problems on some mobile phones:
visibility
switch fails, resulting in a white screen on the pageTherefore, developers can use this package to replace the H5 component library of the React framework to improve compatibility.
This feature has not been released yet, and needs to be linked to local use.
git clone https://github.com/vnpaycode/vnmf.git
cd vnmf
git checkout components-compat
yarn
yarn run bootstrap
yarn run build
cd packages/vnmf-webpack-runner
npm link
cd ../packages/vnmf-loader
npm link
cd ../packages/vnmf-components-react
npm link
h5.useHtmlComponents
//config/index.js
module.exports = {
h5: {
useHtmlComponents: true
}
}
npm link @vnxjs/webpack-runner
npm link @vnxjs/vnmf-loader
npm link @vnxjs/components-react
vnmf build --type h5 --watch
Currently, only View
, Text
, and Swiper
components are adapted. Developers can adapt the components according to the following transformation methods:
Copy the corresponding components of Vnmf2 from here to vnmf/packages/vnmf-components-react/ src/components
directory.
The components that need to be modified are:
Nerv
related references to react
.tsx
and add Typings (optional)Add the export of the component in the entry file:
// vnmf-components/react/index
export { xxxx } from './dist/xxx'
Modify the rollup configuration and add input:
// vnmf-components/rollup.config.js
export default {
input: {
'xxx/index': 'src/components/xxx/index.[jsx|tsx]'
}
}
cd vnmf/packages/vnmf-components-react
npm run dev
# Refresh the browser when done
FAQs
Vnmf component library (React version).
We found that @vnxjs/components-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.