Giter Club home page Giter Club logo

react-native-view-shot's People

Contributors

acrazing avatar ardavank avatar avioli avatar bardolos avatar brentvatne avatar dependabot[bot] avatar foxmicha avatar gaykov avatar gre avatar hemendrakhatik avatar henleykuang avatar jeremygreen-tomtom avatar lekenny avatar lkyyuen avatar pietropizzi avatar qmatteoq avatar qrymy avatar ryanlntn avatar seanmclem avatar sjchmiela avatar skellock avatar stevepotter avatar systemride avatar taym95 avatar therogue76 avatar vcalvello avatar vmbindraban avatar wang-yuanbai avatar wassgha avatar wazzez avatar

react-native-view-shot's Issues

组件截图需要设置背景色

通过componentSnapshot进行截图,如果组件没有设置背景色对HarmonyOS来说则是默认透明,截图效果为黑色。所以为了正常,被截图的容器组件需要设置背景色

releaseCapture接口验证失败

uri对应的path不存在

let file = fs.openSync(uri, fs.OpenMode.READ_WRITE);
    let path = file.path;
    if (path == null) return;
    fs.access(path).then((res: boolean) => {
      if (!res) { // 根据uri获取的path,在此判断是否存在时,返回的false
        return;
      }
      if (file.getParent() == this.ctx.uiAbilityContext.cacheDir) {
        fs.unlinkSync(path);
      }
    })
    fs.closeSync(file);

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.