
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
react-native-app-consent
Advanced tools
$ yarn add git+https://gitlab+deploy-token-98:N3jnpXWzcBmuaaxHkRhs@git.snapp.fr/fidme/apps/modules/react-native-app-consent
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-app-consent
and add RNAppConsent.xcodeproj
libRNAppConsent.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)You need to manually follow these steps :
$(SRCROOT)/../node_modules/react-native-app-consent/ios
(non-recursive) for each of your configurations (e.g. Debug and Release).AppConsentKit.framework
file in ../node_modules/react-native-app-consent/ios
and drag it into Xcode under the "Frameworks" group. In the dialog that pops up, uncheck "Copy items if needed", choose "Create groups", and ensure your main target is checked under "Add to targets".AppConsentKit.framework
which appears under "Frameworks" then click "Add"."Product" -> "Clean"
Cmd+R
)android/app/src/main/java/[...]/MainActivity.java
import com.fidme.appconsent.RNAppConsentPackage;
to the imports at the top of the filenew RNAppConsentPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:include ':react-native-app-consent'
project(':react-native-app-consent').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-app-consent/android')
android/app/build.gradle
:implementation project(':react-native-app-consent')
maven {
url "https://artifactory.datalf.chat/artifactory/app-consent-release"
credentials {
username = "${username}"
password = "${encrypted_password}"
}
}
android.configurations {
all*.exclude group: 'com.google.guava', module: 'listenablefuture'
}
import RNAppConsent from 'react-native-app-consent';
RNAppConsent.start(String url);
RNAppConsent.presentGeoNoticeOnUserDemand(boolean userDemand, Promise promise);
RNAppConsent.presentNoticeOnUserDemand(boolean userDemand, Promise promise);
RNAppConsent.presentBannerOnUserDemand(boolean userDemand, Promise promise);
RNAppConsent.presentGeoBannerOnUserDemand(boolean userDemand, Promise promise);
RNAppConsent.isExtraPurposeAllowed(String purposeId, Promise promise);
RNAppConsent.isExtraVendorInPurposeAllowed(String vendorId, String purposeId, Promise promise);
RNAppConsent.shouldPresentGeolocationNoticeWithResolver();
RNAppConsent.shouldPresentNoticeWithResolver();
RNAppConsent.shouldPresentNoticesWithResolver();
RNAppConsent.subjectToGDPR(Promise promise);
RNAppConsent.cmpPresent(Promise promise);
RNAppConsent.consentString(Promise promise);
RNAppConsent.parsedVendors(Promise promise);
RNAppConsent.parsedPurposes(Promise promise);
RNAppConsent.setApplicationIcon(ReadableMap icon);
RNAppConsent.setNavigationBackImage(ReadableMap image);
RNAppConsent.setNoticeOnboardingImage(ReadableMap image);
RNAppConsent.setNoticeSuccessImage(ReadableMap image);
RNAppConsent.setNoticeInformationIcon(ReadableMap icon);
RNAppConsent.setGeoAdvertizingIcon(ReadableMap icon);
FAQs
react-native-app-consent
We found that react-native-app-consent 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.