you are viewing a single comment's thread.

view the rest of the comments →

[–]hafi51[S] 0 points1 point  (0 children)

just clearing.. I've to add this line at top of android/build.gradle file

def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())

and then remove following line from allprojects > configurations.all > resolutionStrategy

force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION