replace-custom-components-file.sh
2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/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 SectionList.js..."
#cp -f ./js/common/components/customComponents/SectionList.js.bak ./node_modules/react-native/Libraries/Lists/SectionList.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 VirtualizedSectionList.js..."
#cp -f ./js/common/components/customComponents/VirtualizedSectionList.js.bak ./node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js
#echo "Removing Webview from ios ..."
#cp -f ./js/common/components/customComponents/react-native-implementation.js.bak ./node_modules/react-native/Libraries/react-native/react-native-implementation.js
echo "Replace ViewPropTypes.js..."
cp -f ./js/common/components/customRn0.61/ViewPropTypes.js.bak ./node_modules/react-native/Libraries/Components/View/ViewPropTypes.js
echo "Replace ListView.js..."
cp -f ./js/common/components/customRn0.61/ListView.js.bak ./node_modules/deprecated-react-native-listview/index.js
echo "Replace TouchableWithoutFeedback.js..."
cp -f ./js/common/components/customRn0.61/TouchableWithoutFeedback.js.bak ./node_modules/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js
echo "Replace TouchableOpacity.js..."
cp -f ./js/common/components/customRn0.61/TouchableOpacity.js.bak ./node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js
echo "Replace TouchableHighlight.js..."
cp -f ./js/common/components/customRn0.61/TouchableHighlight.js.bak ./node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js
echo "Replace ScrollView.js..."
cp -f ./js/common/components/customRn0.61/ScrollView.js.bak ./node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js
echo "Replace ReactNativeViewViewConfig.js..."
cp -f ./js/common/components/customRn0.61/ReactNativeViewViewConfig.js.bak ./node_modules/react-native/Libraries/Components/View/ReactNativeViewViewConfig.js
echo "\n"