Skip to content

Instantly share code, notes, and snippets.

@azanli
Forked from cooperka/getFlatList.bash
Last active November 9, 2017 05:05
Show Gist options
  • Select an option

  • Save azanli/ab03de284a76050f956509e0277c45b3 to your computer and use it in GitHub Desktop.

Select an option

Save azanli/ab03de284a76050f956509e0277c45b3 to your computer and use it in GitHub Desktop.
How to download FlatList and its related dependencies directly into your node_modules.
mkdir -p node_modules/react-native/Libraries/Lists/ && \
for file in 'FlatList' 'MetroListView' 'SectionList' 'VirtualizedList' 'VirtualizedSectionList' 'ViewabilityHelper' 'VirtualizeUtils' 'FillRateHelper'; \
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