Does not work alongside RN 0.67.x
What issue are you encountering? We have had it running on iOS in every React-Native release since 0.64
There was something about its gradle config, which crashed gradle build of my host project after the update to 0.67 from 0.66. Though, I am noob regarding Gradle, so it might be I was doing something wrong. I ended up just forking the lib, doing a bunch of changes in its Gradle file, most of whice aren't related, then it worked for me, so I am using my fork, and already forgot what was the issue, and what exactly fixed it for me.
The issue is related to maven plugin ( also with compileSdkVersion ) due to Gradle version.
React Native 0.66 uses gradle version 7, So works perfect.
React Native 0.67 and onwards uses version 8. In gradle v8, maven is removed and maven-publish should be used ( according to https://stackoverflow.com/questions/69100888/plugin-with-id-maven-not-found ). Issues:-
- [Plugin with id 'maven' not found] ( gradlew commands ( clean, assembleDebug )
- [compileSdkVersion is not specified. Please add it to build.gradle] ( npx react-native run-android )
Solution:- The error is about gradle config that makes it incompatible with gradle version 8. Need to update build.gradle file in lib android folder to make it compatible with gradle v8
I needed to modify my branch to make the same changes I found here before I could get this to work:
https://github.com/LucasMonteiro1/react-native-flic2/commit/324575436fe3547a6f9c8bf55b12bc049a11862f
Ugh... I never mentioned, I have my fork published to NPM: @dr.pogodin/react-native-static-server, just in case anybody bumps into the same problem, can just use it.
Ugh... I never mentioned, I have my fork published to NPM: @dr.pogodin/react-native-static-server, just in case anybody bumps into the same problem, can just use it.
Thanks your work,I can't get new version by npm. npm info react-native-static-server
[email protected] | MIT | deps: none | versions: 19
HTTP static file server for React Native
https://github.com/futurepress/react-native-static-server
keywords: react-native
dist
.tarball: https://registry.npmjs.org/react-native-static-server/-/react-native-static-server-0.5.0.tgz
.shasum: 4b396082bfe7dfdbba6fe7d7de894de5ba4ebadb
.integrity: sha512-RGteckPoBZq48p9Y8V67bjZGPxLHKkEOAffLSUJiGC7hkx+H+zuekqCR+04F30NuWB7y+nb8N7Qld2RGjX5DNg==
.unpackedSize: 67.9 kB
maintainers:
- fchasen <[email protected]>
dist-tags:
latest: 0.5.0
published over a year ago by fchasen <[email protected]>
@jimzou npm info @dr.pogodin/react-native-static-server

@birdofpreyru Thanks,I asked a low-level question!