Giter Site home page Giter Site logo

electrode-native-manifest's People

Contributors

alvarocasta avatar belemaire avatar bengarnett avatar clairewli avatar comigor avatar daversm avatar davidgovea avatar deepueg avatar friederbluemle avatar gmbharath12 avatar jduthon avatar jw2175 avatar krunalsshah avatar lctwisk avatar leonardlib avatar ozcanzaferayan avatar rthic23 avatar swashcap avatar tianling536 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

electrode-native-manifest's Issues

Add support for react-native [email protected]

Add Support for react-native camera-v3.23.1 requires additional work on the ern side to copy the missing classes to the container.

Currently, when the container is generated we are only copying Java files under android/src/main react-native-camera has placed some of their class files under android/src/general

Because of this, the container fails to build when this dependency is added.

Missing files: https://github.com/react-native-community/react-native-camera/tree/master/android/src/general

Also, the following entry needs to be added to the build.gradle . Currently this is not supported via config.
https://react-native-community.github.io/react-native-camera/docs/installation#android-other-required-steps

Add support for React-Native Lottie

Has this been explored yet? Wouldn't mind contributing some work for this on both platforms if I can get some help and if this is a desirable add.

How to get list of available wifi networks on android devices in react native?

Hello
please i need help, i'm new in react native and i'm trying to get list of available wifi networks and connect to wifi network. I installed react-native-wifi-manager and react-native-wifi but always i get the same error null is not an object (evaluating '_reactNativeWifi.default.connectToProtectedSSID')
image
Thanks a lot :)

[email protected] does not work on android

It looks like, this library is using xml resources, which means it requires proper R file package reference which is only generated when react-native-camera is added as a library dependency. Inroder to make camera plugin work, we need to either add a way to copy over the resource xmls and allow a text override for updating the package imports. Once we copy over the xml, the package name for the R file will be of containers.

✖ An error occurred: Command failed: ./gradlew lib:uploadArchives
✖ ~/ern-temp/tmp-65493YfzNRwyIpgYU/lib/src/main/java/com/google/android/cameraview/TextureViewPreview.java:28: error: cannot find symbol
✖ import org.reactnative.camera.R;
✖                              ^
✖   symbol:   class R
✖   location: package org.reactnative.camera
✖ ~/ern-temp/tmp-65493YfzNRwyIpgYU/lib/src/main/java/com/google/android/cameraview/SurfaceViewPreview.java:27: error: cannot find symbol
✖ import org.reactnative.camera.R;
✖                              ^
✖   symbol:   class R
✖   location: package org.reactnative.camera
✖ ~/ern-temp/tmp-65493YfzNRwyIpgYU/lib/src/main/java/com/google/android/cameraview/TextureViewPreview.java:38: error: package R does not exist
✖         final View view = View.inflate(context, R.layout.texture_view, parent);
✖                                                  ^
✖ ~/ern-temp/tmp-65493YfzNRwyIpgYU/lib/src/main/java/com/google/android/cameraview/TextureViewPreview.java:39: error: package R does not exist
✖         mTextureView = (TextureView) view.findViewById(R.id.texture_view);
✖                                                         ^
✖ ~/ern-temp/tmp-65493YfzNRwyIpgYU/lib/src/main/java/com/google/android/cameraview/SurfaceViewPreview.java:34: error: package R does not exist
✖         final View view = View.inflate(context, R.layout.surface_view, parent);
✖                                                  ^
✖ ~/ern-temp/tmp-65493YfzNRwyIpgYU/lib/src/main/java/com/google/android/cameraview/SurfaceViewPreview.java:35: error: package R does not exist
✖         mSurfaceView = (SurfaceView) view.findViewById(R.id.surface_view);

Container generator stuck with Node.js 17

Still needs to be investigated more, but it appears in some cases, container generation (e.g. running ern run-android) with Node.js 17 simply stops, with no more console output, waiting forever.

It happens at the end of the Injecting JavaScript engine step, right before the line starting with cp below:

popd
~/.ern/containergen/out/android /path/to/test-miniapp
cp -Rf /private/var/folders/xb/4lt2zppd3cnc6qhcc09wxb8r0000gn/T/tmp-92135-YPGFhV9Qp5gE/jni ~/.ern/containergen/out/android/lib/src/main/jniLibs
[ Injecting JavaScript engine [JavaScriptCore] (Completed in 0s)]

Add support for react-native-reanimated v2.0.0

This version is different from the current supported version (react-native-reanimated_v1.3.0+). According to the documentation:

Reanimated 2 is primarily built in C++ using Turbo Modules infrastructure which is not yet completely deployed in React Native (specifically on Android). Because of that the installation of new Reanimated requires additional steps apart from just adding a dependency to package.json.

This means that the following method needs to be overridden in the ElectrodeReactNativeHost, something that the current ReactPlugin interface doesn't provide.

      @Override
      protected JSIModulePackage getJSIModulePackage() {
        return new ReanimatedJSIModulePackage(); // <- add
      }

Besides the new JSIModulePackage there is another difference in how the android module is generated for this dependency: during the package creation the android-npm folder is added as the android one (createNPMPackage.sh#L82). As you can see the ReanimatedProxyPackage.java is empty in this case, and this is because the aar packages are generated directly and picked up during the build time.

Screenshot 2021-12-10 at 13 35 35

We haven't found a way to support all these changes needed for react-native-reanimated v2.0.0 in our manifest yet.
Any help is appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.