mg-library 1.0.270 → 1.0.271

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/functions.js +13 -0
  2. package/package.json +1 -1
package/functions.js CHANGED
@@ -48,4 +48,17 @@ export function i18nMessage(key, language, messagesSpanish, messagesEnglish) {
48
48
  if(value===undefined)
49
49
  value = '???' + key + '???';
50
50
  return value;
51
+ }
52
+
53
+ // StyleSheets
54
+
55
+ export function safeAreaViewStyleSheet(insets) {
56
+ return StyleSheet.create({
57
+ safeAreaView: {
58
+ paddingTop: insets.top,
59
+ paddingBottom: insets.bottom,
60
+ paddingLeft: insets.left,
61
+ paddingRight: insets.right
62
+ }
63
+ });
51
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mg-library",
3
- "version": "1.0.270",
3
+ "version": "1.0.271",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {