Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 9855261

Browse files
committed
update version number
1 parent 1486787 commit 9855261

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ jsconfig.json
33
yarn.lock
44
.vscode
55
npm-debug.log
6+
.idea

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-responsive-dimensions",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Resposive fontSize, height and width for your react-native components.",
55
"main": "src/index.js",
66
"scripts": {

src/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ import {
2626
Dimensions
2727
} from 'react-native';
2828

29-
const {height, width} = Dimensions.get('window')
29+
const {height, width} = Dimensions.get('window');
3030

3131
export const responsiveHeight = (h) => {
3232
return height*(h/100);
33-
}
33+
};
3434

3535
export const responsiveWidth = (w) => {
3636
return width*(w/100);
37-
}
37+
};
3838

3939
export const responsiveFontSize = (f) => {
4040
return Math.sqrt((height*height)+(width*width))*(f/100);
41-
}
41+
};

0 commit comments

Comments
 (0)