Giter Club home page Giter Club logo

Comments (19)

jamessawyer avatar jamessawyer commented on June 2, 2024

另外在使用react-native-largelist-v2中,我没有link这个库,好像也没有报错。现在准备尝试使用 react-native-largelist-v3, 想体验一下,新版本是否在性能比v2版本提升很多 😊

from react-native-spring-scrollview.

bolan9999 avatar bolan9999 commented on June 2, 2024

pod我搞了半天,编译没通过,找不到RCTScrollViewManager文件,估计是上传pod的人没有公开这个文件。但是React源代码项目是公开了的。

from react-native-spring-scrollview.

jamessawyer avatar jamessawyer commented on June 2, 2024

哦哦 我刚创建了一个新项目中,没有使用pod管理

  1. RNSpringScrollView.xcodeproj 添加到 Libraries
  2. 项目设置 ==> TARGETS ==> BuildPhases ==> Link Binary With Libraries 添加 **libRNSpringScrollView.a**文件
    这个集成是ok的。

但是现在项目是集成到已经存在的原生项目上的,使用pod管理,项目中不存在 **Libraries**文件夹
不知道这样描述清不清楚,想请问一下 这种情况该怎么手动的集成react-native-spring-scrollview 呢?

from react-native-spring-scrollview.

bolan9999 avatar bolan9999 commented on June 2, 2024

我大概知道什么情况了,那个podspec不需要上传,只需要github上文件齐全就行了,估计是pod进行了额外设置。我已经改好了,准备和下一个版本一起发,下一个版本支持TypeScript

from react-native-spring-scrollview.

bolan9999 avatar bolan9999 commented on June 2, 2024

其实你自己也可以改那个podspec文件

from react-native-spring-scrollview.

jamessawyer avatar jamessawyer commented on June 2, 2024

好的 期待ts版本。podspec要改哪些地方呢?能不能指点一下 🤣

from react-native-spring-scrollview.

ATShiTou avatar ATShiTou commented on June 2, 2024

最新版2.0.16已发布,支持TS,pod文件已更新

from react-native-spring-scrollview.

jamessawyer avatar jamessawyer commented on June 2, 2024

好的 非常感谢!

from react-native-spring-scrollview.

jamessawyer avatar jamessawyer commented on June 2, 2024

对旧版本进行升级, 旧版本信息:

  • react-native-spring-scrollview: 0.0.24
  • react-native-largelist-v2: 2.1.1
    旧版本程序正常,旧版本中没有对react-native-spring-scrollview进行link操作

升级后
新版本版本信息:

  • react-native-spring-scrollview: 2.0.16
  • react-native-largelist-v3: 3.0.10
    使用pod link react-native-spring-scrollview:
pod 'RNSpringScrollView', :podspec => '../node_modules/react-native-spring-scrollview/ios'

最新版本和react-native-largelist-v3一起使用报错,部分代码:

import { LargeList } from 'react-native-largelist-v3';

// ...
<LargeList
  style={styles.list}
  data={this.state.data}
  heightForSection={() => 44}
  renderSection={this._renderSection}
  heightForIndexPath={() => 40}
  ref={list => {this.list = list}}
/>

报错信息:
requireNativeComponent: "SpringScrollContentView" was not found in the UIManager. getNativeComponentAttributes: getNativeComponentAttributes.js:29:4

后对react-native-spring-scrollview取消link,依旧报相同的错,初步怀疑是react-native-largelist-v3版本依赖react-native-spring-scrollview版本不一致导致

from react-native-spring-scrollview.

bolan9999 avatar bolan9999 commented on June 2, 2024

分明是你没连接,连接了肯定不会报找不到SpringScrollView的。 还有一种可能就是你没开-ObjC编译选项,现在绝大多数模板都开了这个选项的

from react-native-spring-scrollview.

bolan9999 avatar bolan9999 commented on June 2, 2024

你这个是缺文件吧?SpringScrollView都有,contentview没有?

from react-native-spring-scrollview.

bolan9999 avatar bolan9999 commented on June 2, 2024

pod工程下面有这个文件吗?STSpringScrollContentViewManager.m

from react-native-spring-scrollview.

jamessawyer avatar jamessawyer commented on June 2, 2024

没有这个文件,我项目里面一般pod成功的都会在 Development Pods 下面生成对应的文件夹,比如react-native-svg 会生成 RNSVG 目录,现在pod完 RNSpringScrollView, 并没有生成对应的文件夹, -Objc 编译选项是开启的。

from react-native-spring-scrollview.

ATShiTou avatar ATShiTou commented on June 2, 2024

那就是文件都没下载成功 ?

from react-native-spring-scrollview.

ATShiTou avatar ATShiTou commented on June 2, 2024

这几个文件都必须要有:

屏幕快照 2019-03-15 上午11 58 00

from react-native-spring-scrollview.

ATShiTou avatar ATShiTou commented on June 2, 2024

你接了这么多天了都没有接入成功吗,实在不行从github拷贝到你的工程都是可以的

from react-native-spring-scrollview.

jamessawyer avatar jamessawyer commented on June 2, 2024

pod显示的安装成功了, 但是没有文件。这几天有别的事情 就先把升级的事情放下来了 现在空闲了又在搞这个 哈哈, 好的,我自己再研究研究,谢大佬了

from react-native-spring-scrollview.

daolou avatar daolou commented on June 2, 2024

我也遇到这个错误了,楼主是怎么解决的,分享一下

from react-native-spring-scrollview.

daolou avatar daolou commented on June 2, 2024

屏幕快照 2019-05-14 15 06 07
我的也是pod 显示RNSpringScrollView 安装成功了,但是pod工程下没有文件,报的错也是这个requireNativeComponent: "SpringScrollContentView" was not found in the UIManager.

from react-native-spring-scrollview.

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.