New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-native-sima

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-sima

An sima app2app integration for react native

latest
Source
npmnpm
Version
0.1.6
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

react-native-sima

Requirements

  • React Native v0.76.0 or higher
  • Node 18.0.0 or higher

Installation

yarn add react-native-sima react-native-nitro-modules

About Nitro modules

This library uses nitro modules to support native features. Without it the library will not work Make sure to checkout nitro modules docs for more info

Example

...

import {startSimaAuth, handleError} from 'react-native-sima';

...

  const [pinCode, setPinCode] = useState('1234567');
  const [clientId, setClientId] = useState('1');
  const [masterKey, setMasterKey] = useState('Your master key');
  const [serviceName, setServiceName] = useState('Your service name');
  const [appScheme, setAppScheme] = useState('react-native-sima');
  const [isLoading, setIsLoading] = useState(false);

...

const handlePress = async () => {
    try {
      setIsLoading(true);
      startSimaAuth({
        appScheme: appScheme, // your app scheme (ios only)
        serviceName: serviceName, // your service name
        userPinCode: pinCode, // user pin code
        logo: base64Example, // image must be in base64 format
        clientId: parseInt(clientId), // your client id
        masterKey: masterKey, // your master key
      })
        .then(res => {
          console.log('res', JSON.parse(res));
        })
        .catch(error => {
          handleError(error);
        })
        .finally(() => {
          setIsLoading(false);
        });
    } catch (error) {
      console.log('error', error);
    }
  };

Credits

Bootstrapped with create-nitro-module.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Keywords

react-native

FAQs

Package last updated on 05 Mar 2025

Did you know?

Socket

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.

Install

Related posts