
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@plaza-app/react-native
Advanced tools
Plaza React Native Web3 login (Beta)
This library currently only works with Expo-managed workflows.
See the docs for more information, or reach out to us in our Discord for help.
Apple: iOS 12+ Android: Custom Tab support
npm install @plazaapp/react-native
For this library to work you will need to install this library's peer dependencies (tested with the latest stable version of each):
crypto-browserify
, stream-browserify
, events
, expo-constants
, expo-linking
, expo-web-browser
,
Inside your metro.config.js, add the polyfills:
const path = require("path");
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
extraNodeModules: {
...{
stream: path.join(__dirname, "node_modules", "stream-browserify"),
crypto: path.join(__dirname, "node_modules", "crypto-browserify"),
events: path.join(__dirname, "node_modules", "events"),
},
},
}),
},
};
import { Plaza } from '@plaza-app/react-native';
// ...
const plaza = new Plaza("<YOUR PUBLIC API KEY>")
return (
// ...
<Button
title="Log in"
onPress={async () => {
const { walletAddress, email } = await plaza.login();
}}
/>
)
If you export your Expo app, you will need to register your app's custom linking scheme for the authentication flow to work:
import { Plaza } from '@plaza-app/react-native'
const Plaza = new Plaza("<YOUR PUBLIC API KEY>", "myapp")
This corresponds to your app's Expo config (app.json / app.config.js):
{
"expo": {
"scheme": "myapp"
}
}
FAQs
test
The npm package @plaza-app/react-native receives a total of 1 weekly downloads. As such, @plaza-app/react-native popularity was classified as not popular.
We found that @plaza-app/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.
Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.