[SOLVED] React-Native Bundle Error error SHA-1 for file is not computed

Issue I am facing this error while creating bundle of react-native app. I am executing command react-native bundle –dev false –entry-file index.js –bundle-output ios/main.jsbundle –platform ios error SHA-1 for file /usr/local/lib/node_modules/react-native/node_modules/metro/src/lib/polyfills/require.js (/usr/local/lib/node_modules/react-native/node_modules/metro/src/lib/polyfills/require.js) is not computed. Run CLI with –verbose flag

Continue reading

[SOLVED] How to SHA1 hash a string in Android?

Issue In Objective C I’ve been using the following code to hash a string: -(NSString *) sha1:(NSString*)stringToHash { const char *cStr = [stringToHash UTF8String]; unsigned char result[20]; CC_SHA1( cStr, strlen(cStr), result ); return [NSString stringWithFormat:@”%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X”, result[0], result[1], result[2], result[3], result[4],

Continue reading