Comments (19)
另外在使用react-native-largelist-v2中,我没有link这个库,好像也没有报错。现在准备尝试使用 react-native-largelist-v3, 想体验一下,新版本是否在性能比v2版本提升很多 😊
from react-native-spring-scrollview.
pod我搞了半天,编译没通过,找不到RCTScrollViewManager文件,估计是上传pod的人没有公开这个文件。但是React源代码项目是公开了的。
from react-native-spring-scrollview.
哦哦 我刚创建了一个新项目中,没有使用pod管理
- 将
RNSpringScrollView.xcodeproj
添加到Libraries
中 - 在
项目设置 ==> TARGETS ==> BuildPhases ==> Link Binary With Libraries
添加 **libRNSpringScrollView.a
**文件
这个集成是ok的。
但是现在项目是集成到已经存在的原生项目上的,使用pod管理,项目中不存在 **Libraries
**文件夹
不知道这样描述清不清楚,想请问一下 这种情况该怎么手动的集成react-native-spring-scrollview 呢?
from react-native-spring-scrollview.
我大概知道什么情况了,那个podspec不需要上传,只需要github上文件齐全就行了,估计是pod进行了额外设置。我已经改好了,准备和下一个版本一起发,下一个版本支持TypeScript
from react-native-spring-scrollview.
其实你自己也可以改那个podspec文件
from react-native-spring-scrollview.
好的 期待ts版本。podspec要改哪些地方呢?能不能指点一下 🤣
from react-native-spring-scrollview.
最新版2.0.16已发布,支持TS,pod文件已更新
from react-native-spring-scrollview.
好的 非常感谢!
from react-native-spring-scrollview.
对旧版本进行升级, 旧版本信息:
- 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.
分明是你没连接,连接了肯定不会报找不到SpringScrollView的。 还有一种可能就是你没开-ObjC编译选项,现在绝大多数模板都开了这个选项的
from react-native-spring-scrollview.
你这个是缺文件吧?SpringScrollView都有,contentview没有?
from react-native-spring-scrollview.
pod工程下面有这个文件吗?STSpringScrollContentViewManager.m
from react-native-spring-scrollview.
没有这个文件,我项目里面一般pod成功的都会在 Development Pods 下面生成对应的文件夹,比如react-native-svg 会生成 RNSVG 目录,现在pod完 RNSpringScrollView, 并没有生成对应的文件夹, -Objc 编译选项是开启的。
from react-native-spring-scrollview.
那就是文件都没下载成功 ?
from react-native-spring-scrollview.
这几个文件都必须要有:
from react-native-spring-scrollview.
你接了这么多天了都没有接入成功吗,实在不行从github拷贝到你的工程都是可以的
from react-native-spring-scrollview.
pod显示的安装成功了, 但是没有文件。这几天有别的事情 就先把升级的事情放下来了 现在空闲了又在搞这个 哈哈, 好的,我自己再研究研究,谢大佬了
from react-native-spring-scrollview.
我也遇到这个错误了,楼主是怎么解决的,分享一下
from react-native-spring-scrollview.
我的也是pod 显示RNSpringScrollView 安装成功了,但是pod工程下没有文件,报的错也是这个requireNativeComponent: "SpringScrollContentView" was not found in the UIManager.
from react-native-spring-scrollview.
Related Issues (20)
- Error to install dependency on RN 0.71.1 HOT 1
- 0.72版本install不了啊。希望保持更新啊
- DEAD LIB
- V3.0.2 还是没有修复 滑动误触点击事件 HOT 7
- 列表内item点击失效 HOT 7
- 安卓下嵌套ScrollView,scrollview内容不滚动,ios可以 HOT 4
- 无障碍读屏不能滑动的问题 HOT 2
- react-native-spring-scrollview 内嵌 SectionList
- TS+RN 项目里报错 HOT 1
- v4.0 报错 HOT 2
- v4.0分支里面,不需要原生了吗?
- Is the npm package not being maintained?
- v4.0分支出现错误 Cannot read property 'contentOffset' of undefined HOT 4
- 瀑布流中怎么设置左右的宽度 HOT 1
- "若手指在滑动过程中始终不离开屏幕会造成列表中元素无法点击"的解决方案 HOT 1
- Unexpected token, expected "," (2:8) HOT 5
- Error: "Expected a type"
- Item 曝光
- 瀑布流card 高度不确定
- Error with RN Version 0.69.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-spring-scrollview.