Comments (6)
Hey @Haiwen01, thanks for reporting. I'll take a look asap but would you be able to post the code you're using to render the SwipeList and remove an item? It'd be a big help. Thanks!
from react-native-swipe-list-view.
@Haiwen01 good call on the openCellId, fixed this in #12.
Closing this. Let me know if you have any other issues. Thanks!
from react-native-swipe-list-view.
Hi Jesse,
I still have this problem in my list with sections.
cannot read property 'closeRow' of null
(if debugger attached)
null is not an object (evaluating 'rowMap["+secId+rowId].closeRow")
(if no debugger attached)
<TouchableOpacity style={[styles.backRightBtn, styles.backRightBtnLeft]}
//onPress={ ()=> this._delete(rowData)}
onPress={ _ => {
onDelete(rowData)
rowMap[`${secId}${rowId}`].closeRow()
}}
>
<Text style={styles.backTextWhite}>Delete</Text>
</TouchableOpacity>
Thanks!
from react-native-swipe-list-view.
@thorbenandresen I believe that's happening because I'm guessing your onDelete
function removes that index from the dataSource before you tried to close it. If you reversed the order of deleting and closing I don't think you'd have a problem.
In any case I've released an update that safe checks against trying to close a row that no longer exists so if you npm install the latest (0.1.1) you shouldn't have a problem either way. Let me know if you do, thanks!
from react-native-swipe-list-view.
@jemise111 again, thank you very much! I really appreciate the effort you put into this. Of all the RN swipeout modules out there, this the most elegant one and the first one which works well for me. Keep up the good work!
from react-native-swipe-list-view.
I have same problem. Add rowMap[`${secId}${rowId}`].closeRow()
in deleteRow
function solve it for me.
The point is you need to closeRow
before delete it.
from react-native-swipe-list-view.
Related Issues (20)
- Question: Change SwipeRow style when swiping started
- SwipeListView actions pass incorrect item in rowMap when using SectionList
- shouldItemUpdate does not seem to work in version 3.2.9
- example how to close rows automatically or by some function when use SwipeRow? HOT 2
- No overload matches this call HOT 7
- Not working with scrollview
- delete button in renderHiddenItem components covers the first button when clicked HOT 1
- Make it harder to start the swipe HOT 1
- SwipeRow : Unable to close row programatically. HOT 3
- react-native-swipe-list-view is not fabric(New Architecture of react-native) compatible yet HOT 2
- ScrollToOffset can't scroll pass through {initialNumToRender}-th row. HOT 1
- Front-view is under the back/hidden-view HOT 4
- Facing issue while implimenting Swipe to Delete feature
- closeOpenAllRows not working on Android HOT 2
- Any way to open a row with a button?
- Question, are you no longer doing library management? HOT 1
- RenderItem, RenderHiddenItem, RenderRow, RenderHiddenRow
- rightActionState true/false wrong
- Open row by key
- There is a memory overflow issue with a single demo
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-swipe-list-view.