Skip to content

Commit

Permalink
fix: Get FlashList working in new architecture using interop layer
Browse files Browse the repository at this point in the history
iOS seems to have problems with flashlist using interop, but android seems to work just fine.
  • Loading branch information
markrickert committed Oct 5, 2023
1 parent 48387f0 commit 563f92f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions boilerplate/react-native.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,18 @@ module.exports = {
// packages, you can add them to the referenced path below and uncomment this line.
// "./assets/fonts/"
],

// This prevents FlashList from rendering a large red box.
// See: https://github.com/reactwg/react-native-new-architecture/discussions/135
// Remove when FlashList fully supports the new architecture.
// https://github.com/Shopify/flash-list/pull/550
//
project: {
android: {
unstable_reactLegacyComponentNames: ["CellContainer", "AutoLayoutView"],
},
ios: {
unstable_reactLegacyComponentNames: ["CellContainer", "AutoLayoutView"],
},
},
}

0 comments on commit 563f92f

Please sign in to comment.