jamonholmgren / react-native-colo-loco Goto Github PK
View Code? Open in Web Editor NEWColocate your native modules and components with your JavaScript/JSX files.
Colocate your native modules and components with your JavaScript/JSX files.
I built a new app with Ignite (love it!), and it builds fine locally.
When I build in Android Studio it works fine. When I build it on AppCenter, it fails and points to Colo Loco:
* Where:
Script '/Users/runner/work/1/s/ThriveBusiness/node_modules/react-native-colo-loco/scripts/android.groovy' line: 17
* What went wrong:
A problem occurred evaluating settings 'android'.
> /Users/runner/work/1/app does not exist.
The only non-standard part of my Ignite setup is that I use /src instead of /app for my JS folder. I've tried both of these in settings.gradle
apply from: '../node_modules/react-native-colo-loco/scripts/android.groovy'
linkColocatedNativeFiles([
appPath: "../app", // also tried using "../src"
appPackageName: "com.myappname",
androidPath: "./android/app/src/main/java/com/myappname"
])
I can see that whatever I change this appPath to is what comes out in the AppCenter build error as not existing, e.g. if I make it ../app it will say > /Users/runner/work/1/app does not exist.
, and if I do ../src it will say > /Users/runner/work/1/src does not exist.
May be a clue. Either way, I've opted to remove colo loco from my project for now.
I created a new app using npx react-native init MyApp
then installed and set up colo-loco using yarn install-colo-loco
The iOS version works well, while the Android one doesn't.
Whenever I run yarn android
I get this error:
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
Where:
Script '/private/tmp/ColoLocoTest/node_modules/react-native-colo-loco/scripts/android.groovy' line: 10
What went wrong:
A problem occurred evaluating settings 'android'.
/Users/a7medev/.gradle/daemon/app does not exist.
The problem I guess is that it's looking for the "app" folder (Source folder I picked in the install script) in the .gradle/daemon
folder (I changed "app" to "src" and got an error with .../.gradle/daemon/src does not exist.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.