6
donuts
5y

An app I wrote in react native broke. It just checks for new episodes and opens the actual download link so this all the ads. The URL seems to have changed from www to www1.... So the Find/Replace broke.

I don't think I will be using RN though because I can't access all features like root commands, that can be done from Android SDK. And probably easier to access all Android's features?

So should I try to fix the RN code (prolly 1 line) or port the whole project to use Android SDK?

Comments
  • 2
    Is that app published somewhere?
    You know, from weeb to weeb
  • 2
    Just use a regex. It'll let you create match groups for the parts of the domain and subdomain. Named groups make it easy to extract the values you want.

    https://javascript.info/regexp-grou...
  • 0
    @Ranchu website? No. I built it to try RN.
  • 1
    @Ranchu
    The shows are all on crunchy and funi right now.
  • 0
    @SortOfTested well I mean do I fix the RN app or move it to a real Android project.
  • 0
    @SortOfTested but only if u pay? Or do they give everyone the latest episode asap now?
  • 0
    @billgates
    Android will be more robust and saleable long term, but the app is easily fixable. Depends on what your concern is.
  • 1
    @SortOfTested I sorta felt like if I'm going to ditch RN anyway, should I just use this as a learning experience for Android... But last app I built for Android took forever to setup because of some bugs and new changes... The template project didn't exactly work...
  • 1
    Left all the details in but took a whole day to figure out how to get the right tab to show up...

    it was some bug where the xml element order mattered and the template had it in the wrong order... I think I ranted about this
  • 2
    @billgates
    Were it me, I'd go android. React Native is more of a 1.0 mvp approach than a long term solution. Most companies decide to go full native within a few iterations.
  • 0
    As much as i hate javascript, rn is probably way less tedious than native
Add Comment