Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@capitual/react-native-store-review

Package Overview
Dependencies
Maintainers
18
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capitual/react-native-store-review

App in review adapter to React Native.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
18
Created
Source

@capitual/react-native-store-review

App review adapter to React Native.

only works on android for native option

Introduction

  • Installation
  • Usage
  • Contributing
  • License

Installation

npm install @capitual/react-native-store-review

Usage

import * as React from 'react';
import {
  openCustomReview,
  openNativeReview,
} from '@capitual/react-native-store-review';
import { StyleSheet, View, Text, Alert, TouchableOpacity } from 'react-native';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    paddingHorizontal: 20,
  },
  button: {
    width: '100%',
    height: 64,
    borderRadius: 8,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: 'black',
    marginVertical: 10,
  },
  text: {
    textAlign: 'center',
    fontSize: 24,
    color: 'white',
  },
});

export default function App() {
  const handleOpenCustomReview = () => {
    try {
      openCustomReview('IOS_APP_ID', 'ANDROID_APP_ID');
    } catch (e) {
      Alert.alert('Error on open  Custom Review');
    }
  };

  const handleOpenNativeReview = async () => {
    try {
      openNativeReview();
    } catch (e) {
      Alert.alert('Error on open  Native Review');
    }
  };

  return (
    <View style={styles.container}>
      <TouchableOpacity style={styles.button} onPress={handleOpenCustomReview}>
        <Text style={styles.text}>Open Custom Review</Text>
      </TouchableOpacity>
      <TouchableOpacity style={styles.button} onPress={handleOpenNativeReview}>
        <Text style={styles.text}>Open Native Review</Text>
      </TouchableOpacity>
    </View>
  );
}


Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.


License

MIT License. 🙂


Made with create-react-native-library. 😊

Keywords

FAQs

Package last updated on 19 Jul 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc