Code Monkey home page Code Monkey logo

Comments (3)

alexisrougnant avatar alexisrougnant commented on August 27, 2024 2

In release mode the addImage method of RCTMGLStyle returns without downloading the asset. The reason is that RCTMGLStyleValue's shouldAddImage always returns false.

We have:

public boolean shouldAddImage() {
    return isAddImage;
}
isAddImage = imageURI != null && imageURI.contains("://");

But the image uri would fulfil the condition only in debug mode as it is of the following form:

Applying this change fixes the problem, but it might introduce other flaws

- isAddImage = imageURI != null && imageURI.contains("://");
+ isAddImage = imageURI != null;

Concerning the asset rendering in black, it happens only within the simulator for me. It's probably a totally different issue.

from maps.

kristfal avatar kristfal commented on August 27, 2024 1

FYI, emulator GL rendering can be quite flaky depending on underlying hardware and emulator in use. I suggest you check that against a real device.

from maps.

mfazekas avatar mfazekas commented on August 27, 2024

@alexisrougnant Thanks, yes not sure why is the imageURI.contains("://") condition there. ImageURI can be a path, uri, bundled image name and maybe base64 images, but in any case we want to decode it.

Regarding the black icon, it works fine for me in android simulator. Not sure what's going on in that case for you. The image is clearly loaded just the colors are screwed up.

from maps.

Related Issues (20)

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.