Comments (17)
@mikehardy I have notifications turned on. I have actually left for home so I'll send you info tomorrow.
from rn-androidx-demo.
@mikehardy Run the script and then on running react-native run-android
, I am getting Could not resolve errors for AndroidX libraries in the linked projects.
from rn-androidx-demo.
@khat33b not sure if you have notifications on for your repo or not so I’m tagging just in case ;-)
from rn-androidx-demo.
sounds good - just to be super specific since we're on opposing time zones, so we don't miss a chance, the whole rn-androidx-demo repo is actually just to hold that make-demo.sh script, so I'd remove every other thing and just modify make-demo.sh, then commit that. We'll see what blows up and try to fix it! :-) cheers
from rn-androidx-demo.
@mikehardy I have added the shell file and removed the others.
from rn-androidx-demo.
thank you! I’ll check
from rn-androidx-demo.
I fixed the errors manually and it worked out OK. But my worrk project has that error library "libjsc.so" not found.
I have not been able to solve that.
from rn-androidx-demo.
If your goal is an AndroidX app, the problem is your init call. Do this per the release docs for RN0.60 RC2 react-native init rnandroidxdemo --version react-native@next and remove your npm i react-native call
Also, comment out the reverse test at the end, and for me anyway it seems to work.
Your libjsc thing is project-specific - no ideas there, sorry
from rn-androidx-demo.
I had done that the second time but I got the same issues. It seems that react-native-maps did not convert to AndroidX properly and FBSDK requires a parameter in its constructor. So when it was auto generated, it gave an error.
from rn-androidx-demo.
Oh hmm - I had commented out a few dependencies to speed up the cycle so maybe I missed those two. Can you think of any others specifically? I’ll check them specifically
from rn-androidx-demo.
FBSDK constructor parameter is handled with a sed call in the script FWIW, but maps, I dunno
from rn-androidx-demo.
Those two caused the bulk of the problems. other were successful.
Could you please give some hints as to how I would solve the libjsc issue? I just can't figure it out and none of the answerss in SO fix my problem.
from rn-androidx-demo.
no idea unfortunately never seen it. In cases like that I typically bisect. You mention it’s a work app so you can’t divulge I’d suppose, but I’d take something like make-demo.sh but with all your dependencies as the things to fetch + link. Make sure you can reproduce. Then binary search through until you can break it or fix it with one dependency change, then pursue that library ?
Or perhaps you’ll learn that it was something about project construction at which point take the new recipe to make a fresh skeleton at the native layer and hang your app code back on it
from rn-androidx-demo.
OK. Thanks for the help.
from rn-androidx-demo.
Here’s what you need to avoid hand-hacking react-native-fbsdk (or anything that takes a parameter) in the new “auto-linking” world of RN0.60:
module.exports = {
'react-native-fbsdk': {
platforms: {android: {packageInstance: "new RNFBSDKPackage(com.facebook.CallbackManager.Factory.create())"}}
}
}
from rn-androidx-demo.
Here’s what you need for react-native-maps react-native-maps/react-native-maps#2927 - maybe they’ll accept it - update it was accepted but is not released yet.
So FBSDK needs a config thing for the new auto-linking (either the library needs a change - they’re aware of that upstream now, or a local config can be done - which is what I’m doing in my test suite now) and react-native-maps will work if you take my PR branch.
from rn-androidx-demo.
I solved my library "libjsc.so" not found
error. I had to create a new project and then added the dependencies and the JS source and that worked.
from rn-androidx-demo.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rn-androidx-demo.