replace-custom-components-file-android.sh 1.27 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 ScrollView.js..."
cp -f ./js/common/components/customComponents/android_0.35/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/CustomComponents/ListView/ListView.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 "Replace react-native-swiper.js..."
cp -f ./js/common/components/customComponents/android_0.35/react-native-swiper.js.bak ./node_modules/react-native-swiper/src/index.js
echo "Replace ScrollResponder.js..."
cp -f ./js/common/components/customComponents/android_0.35/ScrollResponder.js.bak ./node_modules/react-native/Libraries/Components/ScrollResponder.js
echo "\n"