removed react-native-theming from all project

This commit is contained in:
ue 2018-09-30 02:57:38 +03:00
parent 323ba0cacf
commit c3dd62cbaf
7 changed files with 133 additions and 190 deletions

8
package-lock.json generated
View File

@ -8965,14 +8965,6 @@
"prop-types": "^15.5.10" "prop-types": "^15.5.10"
} }
}, },
"react-native-theming": {
"version": "1.0.16",
"resolved": "https://registry.npmjs.org/react-native-theming/-/react-native-theming-1.0.16.tgz",
"integrity": "sha512-f8P7F3yKW9i+PmsmZo98V933Ggsu6YpsBw8pvNEAOENnNqbFmeDL6K+89F0WmkpF6bSs/qqSbyGUWKvCgNhBkw==",
"requires": {
"prop-types": "^15.6.0"
}
},
"react-native-vector-icons": { "react-native-vector-icons": {
"version": "4.6.0", "version": "4.6.0",
"resolved": "https://registry.npmjs.org/react-native-vector-icons/-/react-native-vector-icons-4.6.0.tgz", "resolved": "https://registry.npmjs.org/react-native-vector-icons/-/react-native-vector-icons-4.6.0.tgz",

View File

@ -32,7 +32,6 @@
"react-native-navigation": "^2.0.2519", "react-native-navigation": "^2.0.2519",
"react-native-restart": "0.0.6", "react-native-restart": "0.0.6",
"react-native-slider": "^0.11.0", "react-native-slider": "^0.11.0",
"react-native-theming": "^1.0.16",
"react-native-vector-icons": "^4.6.0", "react-native-vector-icons": "^4.6.0",
"react-redux": "^5.0.7", "react-redux": "^5.0.7",
"realm": "^2.15.3", "realm": "^2.15.3",

View File

@ -1,7 +1,7 @@
import { createStyle } from "react-native-theming"; import EStyleSheet from "react-native-extended-stylesheet";
import { StatusBar, Dimensions } from "react-native"; import { StatusBar } from "react-native";
const styles = createStyle({ export default EStyleSheet.create({
container: { container: {
backgroundColor: "#F9F9F9", backgroundColor: "#F9F9F9",
flex: 1, flex: 1,
@ -21,7 +21,7 @@ const styles = createStyle({
}, },
tabs: { tabs: {
position: "absolute", position: "absolute",
top: Dimensions.get("window").width / 30, top: "$deviceWidth / 30",
alignItems: "center", alignItems: "center",
}, },
flatlistFooter: { flatlistFooter: {
@ -32,5 +32,3 @@ const styles = createStyle({
borderColor: "#CED0CE", borderColor: "#CED0CE",
}, },
}); });
export default styles;

View File

@ -1,9 +1,6 @@
import { createStyle } from "react-native-theming"; import EStyleSheet from "react-native-extended-stylesheet";
import { Dimensions } from "react-native";
const deviceWidth = Dimensions.get("window").width; export default EStyleSheet.create({
export default createStyle({
container: { container: {
flex: 1, flex: 1,
alignItems: "center", alignItems: "center",
@ -13,6 +10,6 @@ export default createStyle({
backgroundColor: "#f5f5f5", backgroundColor: "#f5f5f5",
borderRadius: 5, borderRadius: 5,
padding: 15, padding: 15,
minWidth: deviceWidth / 2, minWidth: "$deviceWidth / 2",
}, },
}); });

View File

@ -1,7 +1,6 @@
import { createStyle } from "react-native-theming"; import EStyleSheet from "react-native-extended-stylesheet";
import { StatusBar, Dimensions } from "react-native";
const styles = createStyle({ export default EStyleSheet.create({
container: { container: {
backgroundColor: "#F9F9F9", backgroundColor: "#F9F9F9",
flex: 1, flex: 1,
@ -50,12 +49,10 @@ const styles = createStyle({
flex: 1, flex: 1,
paddingHorizontal: 7, paddingHorizontal: 7,
backgroundColor: "#f9f9f9", backgroundColor: "#f9f9f9",
minWidth: Dimensions.get("window").width, minWidth: "$deviceWidth",
}, },
loginButton: { loginButton: {
alignSelf: "center", alignSelf: "center",
marginTop: 100, marginTop: 100,
}, },
}); });
export default styles;

View File

@ -1,7 +1,6 @@
import { createStyle } from "react-native-theming"; import EStyleSheet from "react-native-extended-stylesheet";
import { StatusBar, Dimensions } from "react-native"; import { StatusBar } from "react-native";
export default EStyleSheet.create({
const styles = createStyle({
container: { container: {
backgroundColor: "#F9F9F9", backgroundColor: "#F9F9F9",
flex: 1, flex: 1,
@ -21,7 +20,7 @@ const styles = createStyle({
}, },
tabs: { tabs: {
position: "absolute", position: "absolute",
top: Dimensions.get("window").width / 30, top: "$deviceWidth / 30",
alignItems: "center", alignItems: "center",
}, },
flatlistFooter: { flatlistFooter: {
@ -32,5 +31,3 @@ const styles = createStyle({
borderColor: "#CED0CE", borderColor: "#CED0CE",
}, },
}); });
export default styles;

View File

@ -1,37 +0,0 @@
import { createTheme } from 'react-native-theming';
const fonts = {
FONT_SIZE_SMALL: '12',
FONT_SIZE_MEDIUM: '14',
FONT_SIZE_LARGE: '16',
FONT_WEIGHT_LIGHT: '200',
FONT_WEIGHT_MEDIUM: '600',
FONT_WEIGHT_HEAVY: '800',
};
const themes = [
createTheme(
{
backgroundColor: 'white',
textColor: 'black',
buttonColor: 'blue',
buttonText: 'white',
statusBar: 'dark-content',
fontSize: fonts.FONT_SIZE_MEDIUM,
fontWeight: fonts.FONT_WEIGHT_MEDIUM,
},
'Light'
),
createTheme(
{
backgroundColor: 'black',
textColor: 'white',
buttonColor: 'yellow',
buttonText: 'black',
statusBar: 'light-content',
fontSize: fonts.FONT_SIZE_MEDIUM,
fontWeight: fonts.FONT_WEIGHT_MEDIUM,
},
'Dark'
),
];