Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
react-native-web-polyfill
Advanced tools
A set of classes and react components to make work your react-native app in a browser. (with some limitations obviously)
A set of classes and react components to make work your react-native app in a browser. (with some limitations obviously)
This package is in pre-pre-pre-pre-pre-pre-pre-pre-pre-beta version! API will not change (as we are emulating the react-native ones ahah) but lots of components or properties could be missing. We encourage you to help us by reporting those or PR implementation of them! :D
Since it is all plain javascript, any native binary module won't be supported. By the way we are planning to provide an extra folder that will contains polyfills and workaround for the exposed api of some of these modules.
NOTE: Since the original UIExplorer contains a lot of examples that also uses native modules, we have copied only the components already ported, but the may miss support for some props.
npm install react-native-web-polyfill
{
// other webpack config
resolve: {
alias: {
"react-native": "react-native-web-polyfill"
}
}
// setup the macro to resolve require("image!...")
externals: [
require("react-native-web-polyfill/src/macro/image")
],
}
Move into the package folder and run in your terminal:
npm run build
StyleSheet
AppRegistry
View
Text
Image
ScrollView
TextInput
TouchableHighlight
TouchableOpacity
TouchableWithoutFeedback
FAQs
A set of classes and react components to make work your react-native app in a browser. (with some limitations obviously)
The npm package react-native-web-polyfill receives a total of 2 weekly downloads. As such, react-native-web-polyfill popularity was classified as not popular.
We found that react-native-web-polyfill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.