Fork me on GitHub
#cljsrn
<
2018-04-22
>
okwori12:04:09

Thanks @pesterhazy I have been able to get it working

amarjeet14:04:24

Hi @simon , I am also facing the same issue - what was the solution that worked for you?

okwori22:04:06

Hi @U623NFZ17, I wasn't sure if it was a single solution but I tried a series of things.... First I restarted the pc (since I upgraded a few things like the sdk, installed a newer avd), I created ANDROID_HOME env var even though the ide picks up the default install, I had installed a few things via bash on cmd, I resort to just bash and upgraded a few upgrade on the npm installs, and yes, it justs works 🙂

amarjeet06:04:17

Hmm...seems like I will have to just keep trying different things to make it work 🙂

okwori12:04:37

Well, u know what we do is about eliminating variables... that kinda what distinguish the good and experience ones from mediocres 🙂

👍 4
alvina15:04:23

i tried to install react-native-linear-gradient ->

alvina15:04:19

here is package.json output -> + "react-native": "0.52.0", + "react-native-linear-gradient": "^2.4.0"

alvina15:04:15

settings.gradle -> +include ':react-native-linear-gradient' +project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-linear-gradient/android')

alvina15:04:46

MainApplication.java -> + new MainReactPackage(), + new LinearGradientPackage()

alvina15:04:56

+import com.BV.LinearGradient.LinearGradientPackage;

alvina15:04:45

build.gradle -> + compile project(':react-native-linear-gradient')

alvina15:04:40

after this i have ./gradlaw clean

alvina15:04:55

remove node_modules

alvina15:04:15

npm install again

alvina15:04:32

but still have error on

alvina15:04:50

(js/require "react-native-linear-gradient")

alvina15:04:00

#object[Error Error: Unknown named module: 'react-native-linear-gradient'] _require@http://10.0.3.2:8081/index.android.delta?platform=android&dev=true&minify=false:65:24 require@http://10.0.3.2:8081/index.android.delta?platform=android&dev=true&minify=false:58463:30 eval code eval@[native code] figwheel$client$utils$eval_helper