Last active
January 12, 2021 16:36
-
-
Save cooperka/c5dd3ab11f588044d4d6ba22d52c4ab0 to your computer and use it in GitHub Desktop.
How to download FlatList and its related dependencies directly into your node_modules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p node_modules/react-native/Libraries/Lists/ && \ | |
for file in 'FlatList' 'MetroListView' 'SectionList' 'VirtualizedList' 'VirtualizedSectionList' 'ViewabilityHelper' 'VirtualizeUtils'; \ | |
do curl https://raw.githubusercontent.com/facebook/react-native/master/Libraries/Lists/${file}.js > node_modules/react-native/Libraries/Lists/${file}.js; \ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment