replace-custom-components-file.sh 2.37 KB
#!/usr/bin/env bash

echo "Replace custom components!!!"
echo "Replace View.js..."
cp -f ./js/common/components/customComponents/View.js.bak ./node_modules/react-native/Libraries/Components/View/View.js
echo "Replace ViewPropTypes.js..."
cp -f ./js/common/components/customComponents/ViewPropTypes.js.bak ./node_modules/react-native/Libraries/Components/View/ViewPropTypes.js
echo "Replace ScrollView.js..."
cp -f ./js/common/components/customComponents/ScrollView.js.bak ./node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js
echo "Replace ListView.js..."
cp -f ./js/common/components/customComponents/ListView.js.bak ./node_modules/react-native/Libraries/Lists/ListView/ListView.js
echo "Replace FillRateHelper.js..."
cp -f ./js/common/components/customComponents/FillRateHelper.js.bak ./node_modules/react-native/Libraries/Lists/FillRateHelper.js
echo "Replace FlatList.js..."
cp -f ./js/common/components/customComponents/FlatList.js.bak ./node_modules/react-native/Libraries/Lists/FlatList.js
echo "Replace MetroListView.js..."
cp -f ./js/common/components/customComponents/MetroListView.js.bak ./node_modules/react-native/Libraries/Lists/MetroListView.js
echo "Replace SectionList.js..."
cp -f ./js/common/components/customComponents/SectionList.js.bak ./node_modules/react-native/Libraries/Lists/SectionList.js
echo "Replace ViewabilityHelper.js..."
cp -f ./js/common/components/customComponents/ViewabilityHelper.js.bak ./node_modules/react-native/Libraries/Lists/ViewabilityHelper.js
echo "Replace VirtualizedList.js..."
cp -f ./js/common/components/customComponents/VirtualizedList.js.bak ./node_modules/react-native/Libraries/Lists/VirtualizedList.js
echo "Replace VirtualizedSectionList.js..."
cp -f ./js/common/components/customComponents/VirtualizedSectionList.js.bak ./node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js
echo "Replace VirtualizeUtils.js..."
cp -f ./js/common/components/customComponents/VirtualizeUtils.js.bak ./node_modules/react-native/Libraries/Lists/VirtualizeUtils.js
echo "Replace TouchableOpacity.js..."
cp -f ./js/common/components/customComponents/TouchableOpacity.js.bak ./node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js
echo "Replace TouchableHighlight.js..."
cp -f ./js/common/components/customComponents/TouchableHighlight.js.bak ./node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js
echo "\n"