Git Product home page Git Product logo

Comments (10)

2534290808 avatar 2534290808 commented on June 5, 2024

做了一些修改,更新到最新版本,再试试

from react-native-mjrefresh.

anye931123 avatar anye931123 commented on June 5, 2024

这次修改倒是能导进去,但是因为我们原生层也用到了MJRefresh库,跟这个库中的MJRefresh产生冲突了,所以还是报错找不到#import <React/RCTView.h>,但是我们原生开发将你的RCTMJRefreshHeader单独提出来,后编译通过没问题

from react-native-mjrefresh.

2534290808 avatar 2534290808 commented on June 5, 2024

重复导入应该删除一个就行吧

from react-native-mjrefresh.

anye931123 avatar anye931123 commented on June 5, 2024

删除原生依赖的MJRefresh库原生代码报错,原生依赖的MJRefresh版本为'3.1.15.3'

from react-native-mjrefresh.

2534290808 avatar 2534290808 commented on June 5, 2024

那你就单独提出RCTMJRefreshHeader吧

from react-native-mjrefresh.

anye931123 avatar anye931123 commented on June 5, 2024

嗯,提出来的没做任何修改可以支持上拉加载不知为啥,你的例子不支持

from react-native-mjrefresh.

2534290808 avatar 2534290808 commented on June 5, 2024

其实你竟然原生用了MJRefresh,我觉得就没有必要引用我库了,可以自己封装一下

from react-native-mjrefresh.

2534290808 avatar 2534290808 commented on June 5, 2024

这样更好

from react-native-mjrefresh.

anye931123 avatar anye931123 commented on June 5, 2024

我不会ios,我们原生端不会RN所有自己封装成本高,你的库能不能MJRefresh与RCTMJRefreshHeader分开导入,这样如果再有人遇到这种情况就不用我们这么麻烦了。

from react-native-mjrefresh.

2534290808 avatar 2534290808 commented on June 5, 2024

这个可能后续再分开吧

from react-native-mjrefresh.

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.