Skip to content

Commit

Permalink
Merge pull request #8 from nibgat/develop
Browse files Browse the repository at this point in the history
Style editings.
  • Loading branch information
lfabl committed Apr 19, 2022
2 parents e5e8d9e + afd4b3d commit a945c18
Show file tree
Hide file tree
Showing 10 changed files with 254 additions and 105 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ NİBGAT® | Component Library
## Installation

```sh
npm install ncore-mobile
npm install ncore-mobile react-native-gesture-handler react-native-modalize react-native-portalize react-native-svg react-native-simple-toast
```
or
```sh
Expand Down
10 changes: 1 addition & 9 deletions example/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ import {
} from "./locales";
import SvgTest from "./assets/svg/Test";

declare global {
namespace NCore {
interface Translation {
language: string;
}
}
}

type Test = {
test: string;
}
Expand Down Expand Up @@ -88,7 +80,7 @@ const App = () => {
marginBottom: spaces.container
}}
>
Hello NİBGAT®. Your selected theme is {activeTheme}. Your text is "{localize("nCoreDefaultDialogSecondaryButtonTitle")}" and your localize is "{localize("language")}"
{`Hello NİBGAT®. Your selected theme is {activeTheme}. Your text is ${localize("nCoreDefaultDialogSecondaryButtonTitle")} and your language is ${activeLocale === "en" ? "English" : "Turkish"}`}
</Text>
<Button
title="Switch Theme"
Expand Down
1 change: 0 additions & 1 deletion example/src/locales/variants/tr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const tr = {
"code": "tr",
"isRTL": false,
"translations": {
"language": "Türkçe",
"nCoreSelectBoxSelectedText": "Seçim",
"nCoreSelectBoxNoSelectionText": "Seçim yapılmadı",
"coreSearchBoxValidationEnterContent": "İçerik giriniz",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ncore-mobile",
"version": "0.1.0-alpha.4",
"version": "0.1.0-alpha.5",
"description": "NİBGAT® | Component Library",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
5 changes: 3 additions & 2 deletions src/components/checkBox/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from "react";
import {
TouchableOpacity,
ViewStyle
ViewStyle,
Platform
} from "react-native";
import {
CheckBoxIcon
Expand Down Expand Up @@ -54,7 +55,7 @@ const checkBoxStyler = ({

const indicator = {
color: colors.primary,
size: 20
size: Platform.OS === "android" ? 18 : 14
};

if(disabled) {
Expand Down
7 changes: 4 additions & 3 deletions src/components/checkBox/stylesheet.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
StyleSheet
StyleSheet,
Platform
} from "react-native";

const styles = StyleSheet.create({
Expand All @@ -8,8 +9,8 @@ const styles = StyleSheet.create({
justifyContent: "center",
alignItems: "center",
borderWidth: 2,
height: 30,
width: 30
height: Platform.OS === "android" ? 28 : 24,
width: Platform.OS === "android" ? 28 : 24
}
});
export default styles;

0 comments on commit a945c18

Please sign in to comment.