react-native-ssl-pinning is not working on ios

I implemented it according to the instructions written on the Github page. It works on the Android side. On the IOS side, I get an error “the certificate for this server is invalid.”