iamshaunjp / iamshaunjp/react-native-tutorial

TouchableWithoutFeedback component breaks FlatList scrolling...

オープン
#6 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
605
フォーク
499
PR マージ指標
30日以内にマージされた PR はありません

説明

after the App.js views are wrapped in the TouchableWithoutFeedback component, if the list becomes longer than the Item container for the FlatList, scrolling breaks...

I fixed it by wrapping the ToDoItem component in another **TouchableWithoutFeedback**, which makes the items 'touchable' again, allowing them to scroll...

```
export default function ToDoItem ({ item, pressHandler }) {

return (

****

{item.text}

pressHandler(item.id)}>
Done

{/* pressHandler(item.id)}/> */}


****


)
}
```

However, if a user tries scrolling from the "list" view (pressing 'between' two items to scroll), then scrolling is still disabled. I havent been able to figure out how to fix that, except for minimizing the 'marginTop' style for the items (bringing them closer together)...

Any ideas on how to make *any* press within the App.js list view?

I tried wrapping it in another Touchable component, as well as adding a 'onStartShouldSetResponder' prop to the 'list' View, both unsuccessfully...

from App.js
```
{
if (isKeyboardVisible) {
Keyboard.dismiss();
console.log('keyboard dismissed');
}
}}
accessible={false}>

{/* {header} */}


{/* {add todo form} */}

{}}>
true}
style={styles.list}>
{/* {todo list items} */}
(

)}
/>





```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。