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

Commit cce55c8

Browse files
committed
update README and dependencies
1 parent 2bc0547 commit cce55c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ import { responsiveHeight, responsiveWidth, responsiveFontSize } from 'react-nat
2020
const styles = StyleSheet.create({
2121
container: {
2222
justifyContent: 'center',
23-
height: responsiveHeight(50),
24-
width: responsiveWidth(50),
23+
height: responsiveHeight(50), // 50% of screen height
24+
width: responsiveWidth(50), // 50% of screen width
2525
alignItems: 'center',
2626
},
2727
sampleText: {
28-
fontSize: responsiveFontSize(2),
28+
fontSize: responsiveFontSize(2), // 2% of total screen size
2929
}
3030
});
3131
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"repository": "DaniAkash/react-native-responsive-dimensions",
2121
"license": "MIT",
2222
"dependencies": {
23-
"react-native": "^0.42.0"
23+
"react-native": "x"
2424
}
2525
}

0 commit comments

Comments
 (0)