react-native-maps-directions-example fails to build and install
I cloned the repository here(https://github.com/bramus/react-native-maps-directions-example.git): and then i faced 2 issues:
-
yarn installfails because off this line 11"preinstall": "mkdir -p ./node_modules && touch ./node_modules/.metadata_never_index"in thepackage.jsonI resolved the above issue by first commenting/removing the line off thepackage.jsonfile -
on
react-native run-androidfails to install on the android device because of the error: -> see screenshot below
Thanks for reporting this @Nsengiyunva.
I've fixed the yarn install issue, but still need to take a deeper look into the Android issue … must admit I haven't tested this demo app on Android yet 😬
@Nsengiyunva change package name in mainapplication.java to "package com.rnmapsexample;"
case build for IOS: cd ios && pod install