Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@gluestack-ui/provider
Advanced tools
A universal headless provider component for React Native, Next.js & React
To use @gluestack-ui/provider
, all you need to do is install the
@gluestack-ui/provider
package:
$ yarn add @gluestack-ui/provider
# or
$ npm i @gluestack-ui/provider
Provider component that can be used to configure the library. It consists of StyledProvider, OverlayProvider and ToastProvider internally.
Default theme can be found in the gluestack-ui.config
file. For reference, you can view the source code.
// import the createProvider function
import { createProvider } from '@gluestack-ui/provider';
import { config } from '../gluestack.config';
import { StyledProvider } from '@gluestack-style/react';
export const Provider = createProvider({
StyledProvider,
});
// Using the Provider component
export default () => (
<Provider config={config.theme}>
<Text />
</Provider>
);
You can also create GluestackUIProvider component which can be used to wrap your entire application. This will make sure that all the components are wrapped with the provider with styling and other providers like OverlayProvider and ToastProvider.
// import the createProvider function
import { StyledProvider } from '@gluestack-style/react';
import { OverlayProvider } from '@gluestack-ui/overlay';
import { ToastProvider } from '@gluestack-ui/toast';
const GluestackUIStyledProvider = createProvider({ StyledProvider });
const GluestackUIProvider = ({ children, ...props }: any) => {
return (
<GluestackUIStyledProvider {...props}>
<OverlayProvider>
<ToastProvider>{children}</ToastProvider>
</OverlayProvider>
</GluestackUIStyledProvider>
);
};
FAQs
A universal headless provider component for React Native, Next.js & React
The npm package @gluestack-ui/provider receives a total of 10,687 weekly downloads. As such, @gluestack-ui/provider popularity was classified as popular.
We found that @gluestack-ui/provider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.