![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
react-native-ssl-pinning
Advanced tools
React-Native Ssl pinning using OkHttp 3 in Android, and AFNetworking on iOS. ## Getting started
React-Native Ssl pinning using OkHttp 3 in Android, and AFNetworking on iOS.
$ npm install react-native-ssl-pinning --save
$ react-native link react-native-ssl-pinning
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-ssl-pinning
and add RNSslPinning.xcodeproj
libRNSslPinning.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainActivity.java
import com.toyberman.RNSslPinningPackage;
to the imports at the top of the filenew RNSslPinningPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-ssl-pinning'
project(':react-native-ssl-pinning').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-ssl-pinning/android')
android/app/build.gradle
:
compile project(':react-native-ssl-pinning')
openssl s_client -showcerts -connect google.com:443 (replace google with your domain)
Copy the certificate (Usally the first one in the chain), and paste it using nano or other editor like so , nano mycert.pem
convert it to .cer with this command openssl x509 -in mycert.pem -outform der -out mycert.cer
import {fetch} from 'react-native-ssl-pinning';
fetch(url, {
method: "POST" ,
timeoutInterval: communication_timeout,
body: body,
// your certificates array (needed only in android) ios will pick it automatically
sslPinning: {
certs: ["cert1","cert2"]
},
headers: {
Accept: "application/json; charset=utf-8", "Access-Control-Allow-Origin": "*", "e_platform": "mobile",
}
}).then(response => {
console.log(`response received ${response}`)
})
.catch(err => {
console.log(`error: ${err}`)
})
FAQs
React-Native Ssl pinning using OkHttp 3 in Android, and AFNetworking on iOS.
The npm package react-native-ssl-pinning receives a total of 0 weekly downloads. As such, react-native-ssl-pinning popularity was classified as not popular.
We found that react-native-ssl-pinning demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.