Skip to content

Instantly share code, notes, and snippets.

@EmmanuelGuther
Forked from cooperka/getFlatList.bash
Created May 5, 2017 11:51
Show Gist options
  • Save EmmanuelGuther/da712cb7753652e8e607c2173a57c7fc to your computer and use it in GitHub Desktop.
Save EmmanuelGuther/da712cb7753652e8e607c2173a57c7fc 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'; \
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