To stop the React Native dev menu from showing up, ensure that you put into Release
(void)SecRandomCopyBytes(kSecRandomDefault, keyBytes.length, keyBytes.mutableBytes);
(void)SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);
If disallowed for build, turn off automatic signing, clean, close the project, up back up and then turn automatic signing back on.