Comments (6)
Newer Version of React Native is Available! | |
---|---|
ℹ️ | You are on a supported minor version, but it looks like there's a newer patch available - 0.72.12. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
from react-native.
Missing Reproducible Example | |
---|---|
ℹ️ | We could not detect a reproducible example in your issue report. Please provide either:
|
from react-native.
We would need to see your entire project. Could you share a reproducer @zwyzzu ?
from react-native.
⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.72.12. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.
@github-actions
Please help confirm whether the issue was addressed in the commit time mentioned. Due to some reasons, we are unable to upgrade to version 0.72.12. Thank you very much for your assistance.
from react-native.
We would need to see your entire project. Could you share a reproducer @zwyzzu ?
@cortinico
1.Define properties
`
export interface NativeProps extends ViewProps {
// add props
itemSeparator? : string;
footerData? : {};
headerData? : {};
cellHeight? : Int32;
}
export default codegenNativeComponent(
'AHRNReuseListView',
) as HostComponent;
`
2.bridging
`
@ReactProp(name = "headerData")
public void setHeaderData(AHRNListViewLayout rnListViewLayout, ReadableMap headerData) {
LogUtil.d(TAG, "--- headerData : " + headerData + "layouts: " + rnListViewLayout.hashCode());
if (headerData == null || rnListViewLayout == null) {
return;
}
//
// if (rnListViewLayout.getRNListView().getHeaderViewsCount() > 0) {
// return;
// }
HeaderDataEntity headerDataEntity = new HeaderDataEntity(headerData);
RNListViewUpdater.getViewUpdater(rnListViewLayout).setHeaderModule(rnListViewLayout, headerDataEntity);
}
@ReactProp(name = "footerData")
public void setFooterData(AHRNListViewLayout rnListViewLayout, ReadableMap footerData) {
LogUtil.d(TAG, "--- footerData : " + footerData + "layouts: " + rnListViewLayout.hashCode());
if (footerData == null || rnListViewLayout == null) {
return;
}
//
// if (rnListViewLayout.getRNListView().getFooterViewsCount() > 0) {
// LogUtil.d(TAG, "--- footerData : " + footerData + "layouts: " + rnListViewLayout.hashCode() + "has footer views count : " + rnListViewLayout.getRNListView().getFooterViewsCount());
// return;
// }
FooterDataEntity footerDataEntity = new FooterDataEntity(footerData);
RNListViewUpdater.getViewUpdater(rnListViewLayout).setFooterModule(rnListViewLayout, footerDataEntity);
}
`
3.use component
<AHRNReuseListView ref='RCT_UI_REF' style={{width: Dimensions.get('window').width, flex: 1, backgroundColor: 'white' }} data={this.state.data} headerData={{ 'module': 'header', height: 30, data: {} }} footerData={{ 'module': 'footer', height: 30, data: {} }} onPullRefresh={this._onPullRefresh} onSelectedItem={this._onSelectedItem} refreshing={this.state.refreshing} refreshInitHints='1下拉刷新' willRefreshHints='1松开刷新' refreshingHints='1刷新中...' onLoadMore={this._onLoadMore} loadingMore={this.state.loadingMore} loadingHints='1加载更多' />
4.Update State
this.setState({ refreshing: true })
from react-native.
Please use the template linked here @zwyzzu #43760 (comment)
from react-native.
Related Issues (20)
- React-Native IOS real device does not connect to Metro server HOT 6
- Appearence. addChangeListener does not reacts to changes of the themes change on OS after Appearance.setColorScheme was used and reacts only to Appearance.setColorScheme HOT 6
- ModuleNotFoundError: Module not found: Error: Can't resolve '../Utilities/Platform' HOT 4
- scrollview glitches after overscrolling to the top of view HOT 1
- Animation artifacting HOT 2
- Pressing reload on the error screen does not connect to metro HOT 1
- I followed the steps and did the pod install but still my project is failing to load on iOS. HOT 6
- Chain validation failed HOT 3
- [Codegen] overloaded fromRawValue across modules for ArrayEnum props with type alias uint32_t cause runtime crash HOT 7
- Object not shown as needed in new debugger HOT 2
- Hot reload not working on physical device HOT 3
- <Image> events are missing payload data on iOS HOT 1
- When Nesting a Flatlist inside a Flatlist both are horizontal child flatlist in not rendering horizontally HOT 4
- Multiline and returnLabelType="send' not working together? HOT 4
- TypeError: pressability.getEventHandlers is not a function HOT 2
- "Loading from Metro" banner rendering twice and remaining visible for ~15 seconds on each reload HOT 1
- App.tsx seems to run before index.js HOT 1
- "error: index.js: api is not defined" ERROR in React Native HOT 2
- Headless JS fails after 1 minute of usage HOT 11
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.