
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
react-native-conekta
Advanced tools
React Native Conekta SDK for iOS and Android
Component Version | RN Versions | README |
---|---|---|
1.0.4 | <= 0.16 | Open |
>= 2.0.0 | >= 0.30 | Open |
npm install --save react-native-conekta
react-native link
var conektaApi = new Conekta();
conektaApi.setPublicKey( 'YOUR_PUBLIC_KEY' );
conektaApi.createToken({
cardNumber: '4242424242424242',
name: 'Manolo Virolo',
cvc: '111',
expMonth: '11',
expYear: '21',
}, function(data){
console.log( 'DATA:', data ); // data.id to get the Token ID
}, function(){
console.log( 'Error!' );
});
react-native link
)Please see: Linking Libraries iOS
Library folder: your-project/node_modules/react-native-conekta/RNConekta
react-native link
)In android/settings.gradle
...
include ':react-native-conekta'
project(':react-native-conekta').projectDir = file('../node_modules/react-native-conekta/android')
In android/app/build.gradle
...
dependencies {
...
compile project(':react-native-conekta')
}
Manually register module in MainApplication.java
:
import com.dieam.reactnativeconekta.ReactNativeConektaPackage; // <--- import
public class MainApplication extends Application implements ReactApplication {
......
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
protected boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new ReactNativeConektaPackage() // <---- Add the Package
);
}
};
....
}
FAQs
Conekta SDK for React Native
The npm package react-native-conekta receives a total of 6 weekly downloads. As such, react-native-conekta popularity was classified as not popular.
We found that react-native-conekta 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.