Code Monkey home page Code Monkey logo

Comments (11)

Darmody avatar Darmody commented on May 18, 2024

指定 src/native 为原生代码,如何?

from remax.

yesmeck avatar yesmeck commented on May 18, 2024

那页面路径不是变了

from remax.

yesmeck avatar yesmeck commented on May 18, 2024

奥,copy 出来是吧

from remax.

yesmeck avatar yesmeck commented on May 18, 2024

感觉可以

from remax.

Darmody avatar Darmody commented on May 18, 2024

奥,copy 出来是吧

是的

from remax.

YYCoder avatar YYCoder commented on May 18, 2024

请问该功能可用吗?我按照文档上的描述试了一下,会报下图的错误:

代码中结构如下:

from remax.

Darmody avatar Darmody commented on May 18, 2024

@YYCoder 报错是什么?没看到报错

from remax.

YYCoder avatar YYCoder commented on May 18, 2024

@YYCoder 报错是什么?没看到报错

在第一张图的红框里

from remax.

Darmody avatar Darmody commented on May 18, 2024

@YYCoder 我试了没问题,能把完整的repo放一下吗?

from remax.

YYCoder avatar YYCoder commented on May 18, 2024

重新试了一下,发现是页面路径的配置问题。

文档中写的 pages 中的 pages/native/index 会对应到目录中 src/native/pages/native/index ,但实际上 pages 应该是 pages/native/index/index 才是正确的。因为编译出来以后 native 目录的结构是这样的:

from remax.

Darmody avatar Darmody commented on May 18, 2024

这个根据实际情况调整就可以了

from remax.

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.