
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@lightsparkdev/react-native
Advanced tools
This package offers utilities and alternative implementations of some core Lightspark SDK interfaces to add compatibility with react-native. It can be imported in addition to the @lightsparkdev/wallet-sdk or lightsparkdev/react-wallet packages to add react-native support.
To use the package, you'll need to install it from npm:
$ npm install @lightsparkdev/react-native
By default the Lightspark SDKs' crypto implementation does not work on React Native. To use the react-native crypto implementation, you'll need to import this package and set it as the default crypto implementation when constructing your LightsparkClient instance:
import { LightsparkClient } from "@lightsparkdev/wallet-sdk";
// Import the react-native crypto implementation.
import { ReactNativeCrypto } from "@lightsparkdev/react-native";
// Set the crypto implementation when constructing the client.
const lightsparkClient = new LightsparkClient(
/* authProvider */ undefined,
/* serverUrl */ undefined,
/* cryptoImpl */ ReactNativeCrypto
);
Alternatively, if you're using the lightsparkdev/react-wallet package, you can set the crypto implementation when constructing the LightsparkClientProvider:
import {
EncryptedLocalTokenStorage,
ReactNativeCrypto,
} from "@lightsparkdev/react-native";
import {
JwtAuthProvider,
LightsparkClientProvider,
} from "@lightsparkdev/react-wallet";
import PageContainer from "./PageContainer";
export default function App() {
return (
<LightsparkClientProvider customCryptoImpl={ReactNativeCrypto}>
<JwtAuthProvider customTokenStorage={new EncryptedLocalTokenStorage()}>
<PageContainer />
</JwtAuthProvider>
</LightsparkClientProvider>
);
}
See examples/ReactNativeWallet for a full example of how to use this package with lightsparkdev/react-wallet.
FAQs
Lightspark Wallet React Native helpers SDK
The npm package @lightsparkdev/react-native receives a total of 1 weekly downloads. As such, @lightsparkdev/react-native popularity was classified as not popular.
We found that @lightsparkdev/react-native 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
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.