
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-appirater
Advanced tools
react-native wrapper around ios app rating component
##Installation
First you need to install react-native-appirater:
npm install react-native-appirater --save
In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name] ➜ Go to node_modules ➜ react-native-appirater and add the .xcodeproj file
In XCode, in the project navigator, select your project. Add the lib*.a from the appirater project to your project's Build Phases ➜ Link Binary With Libraries. Then, click on the .xcodeproj file you added before in the project navigator, and go the Build Settings tab. Make sure 'All' is toggled on (instead of 'Basic'). Look for Header Search Paths and make sure it contains both $(SRCROOT)/../react-native/React and $(SRCROOT)/../../React - mark both as recursive.
android impl taken mostly from https://github.com/drewjw81/appirater-android
In android/settings.gradle
...
include ':RNAppirater'
project(':RNAppirater').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-appirater/android')
android/app/build.gradle...
dependencies {
...
compile project(':RNAppirater')
}
import com.wynnej1983.RNAppirater.*; // <--- import
public class MainActivity extends Activity {
...
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNAppirater() // <--- add here
);
}
@Override // <--- add this method, the next 4 lines
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
RNAppirater.appLaunched(this);
}
}
}
Copy the /res/values/appirater-settings.xml from the AppiraterAndroid library in to your projects /res/values/ folder and adjust the settings to your preference.
//import module
import Appirater from 'react-native-appirater';
componentWillMount() {
//set app id
Appirater.setAppId('123');
Appirater.setDebug(true);
Appirater.appLaunched(true);
Appirater.appEnteredForeground(true);
}
...
//register user significant event
`Appirater.userDidSignificantEvent();`
FAQs
react native wrapper around ios app review library
The npm package react-native-appirater receives a total of 5 weekly downloads. As such, react-native-appirater popularity was classified as not popular.
We found that react-native-appirater demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.