• This repository has been archived on 20/Dec/2022
  • Stars
    star
    135
  • Rank 263,873 (Top 6 %)
  • Language
    Java
  • License
    Other
  • Created almost 8 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[DEPRECATED]react-native-RealRecyclerView on android.

DEPRECATED

Real Android recycles RecyclerView/ListView

To fix react-native [ListView] renders all rows#499

Thanks for @talkol articles. I implement the android RecyclerView(react-native-RealRecyclerView)

How to use

  1. run this project

copy from another project react-native 0.39.0 version of the node_modules folders can be used.

  1. use RealRecyclerView component

copy My*.java &RealRecycler*.java files to your project;

setup UIImplementationProvider. ReactInstanceManager.Builder.setUIImplementationProvider(new MyUIImplementationProvider())


真正的 Android 回收复用 RecyclerView/ListView

解决 react-native [ListView] renders all rows#499 而不是复用listview item视图问题

使用方法

  1. 怎样跑这个实例

从其他项目拷贝react-native 0.39.0版本的node_modules文件夹既可使用.

  1. 怎样使用RealRecyclerView组件

拷贝 My*.java 和RealRecycler*.java 文件到您的项目;

 设置UIImplementationProvider:ReactInstanceManager.Builder.setUIImplementationProvider(new MyUIImplementationProvider())   详情见我的博文《react native Android 真正回收复用 RecyclerView/ListView

demo


Authors

droidwolf [email protected]

License

Apache License, Version 2.0