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

echo "Replace custom components!!!"

echo "Replace ListView.js..."
cp -f ./js/common/components/customComponents/android_0.49.5/ListView.js.bak ./node_modules/react-native/Libraries/Lists/ListView/ListView.js
echo "Replace SectionList.js..."
cp -f ./js/common/components/customComponents/android_0.49.5/SectionList.js.bak ./node_modules/react-native/Libraries/Lists/SectionList.js
echo "Replace VirtualizedSectionList.js..."
cp -f ./js/common/components/customComponents/android_0.49.5/VirtualizedSectionList.js.bak ./node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js

echo "Replace ScrollView.js..."
cp -f ./js/common/components/customComponents/android_0.49.5/ScrollView.js.bak ./node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js

echo "Replace ScrollResponder.js..."
cp -f ./js/common/components/customComponents/android_0.49.5/ScrollResponder.js.bak ./node_modules/react-native/Libraries/Components/ScrollResponder.js

echo "Replace TouchableOpacity.js..."
cp -f ./js/common/components/customComponents/android_0.49.5/TouchableOpacity.js.bak ./node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js
echo "Replace TouchableHighlight.js..."
cp -f ./js/common/components/customComponents/android_0.49.5/TouchableHighlight.js.bak ./node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js

echo "Replace View.js..."
cp -f ./js/common/components/customComponents/android_0.49.5/View.js.bak ./node_modules/react-native/Libraries/Components/View/View.js
echo "Replace ViewPropTypes.js..."
cp -f ./js/common/components/customComponents/android_0.49.5/ViewPropTypes.js.bak ./node_modules/react-native/Libraries/Components/View/ViewPropTypes.js

echo "Replace WebView.android.js..."
cp -f ./js/common/components/customComponents/android_0.49.5/WebView.android.js.bak ./node_modules/react-native/Libraries/Components/WebView/WebView.android.js

echo "Replace react-native-swipeable.js..."
cp -f ./js/common/components/customComponents/android_0.49.5/react-native-swipeable.js.bak ./node_modules/react-native-swipeable/lib/index.js

echo "Replace react-native-swiper.js..."
cp -f ./js/common/components/customComponents/android_0.49.5/react-native-swiper.js.bak ./node_modules/react-native-swiper/src/index.js
echo "\n"