There's no way to know that in react native till now, but on the other hand, you can check it using native java for android from here.
boolean verifyInstallerId(Context context) {
// A list with valid installers package name
List<String> validInstallers = new ArrayList<>(Arrays.asList("com.android.vending", "com.google.android.feedback"));
// The package name of the app that has installed your app
final String installer = context.getPackageManager().getInstallerPackageName(context.getPackageName());
// true if your app has been downloaded from Play Store
return installer != null && validInstallers.contains(installer);
}
and here's a native solution for IOS
using native from this old answer here.
I prefer you delete the storage for all users in your next update to solve the issue.
And if you can specify the error you have maybe we can help on it.