@shoutem/ui 6.1.2-rc.0 → 6.2.0

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.
package/README.md CHANGED
@@ -12,6 +12,14 @@ $ npm install --save @shoutem/ui
12
12
 
13
13
  We have a `postinstall` script which will add `@shoutem/ui`'s native dependencies to your root `package.json` in order to support autolinking and pod installation.
14
14
 
15
+ Optional: Link the font files to your iOS and Android projects using `react-native-asset`:
16
+
17
+ ```
18
+ $ npx react-native-asset node_modules/@shoutem/ui/fonts
19
+ ```
20
+
21
+ Not doing this will result in dismissable red screen errors about unknown font names, as well as the default system fonts being used on iOS and Android when a Shoutem UI font is meant to be used, so we suggest running this step.
22
+
15
23
  ## Docs
16
24
 
17
25
  All the documentation is available on the [Developer portal](http://shoutem.github.io/docs/ui-toolkit/introduction).
@@ -237,6 +237,9 @@ class SimpleHtml extends PureComponent {
237
237
 
238
238
  return (
239
239
  <YoutubePlayer
240
+ webViewProps={{
241
+ renderToHardwareTextureAndroid: true,
242
+ }}
240
243
  height={style.video.height}
241
244
  key={passProps.key}
242
245
  videoId={youtubeId}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoutem/ui",
3
- "version": "6.1.2-rc.0",
3
+ "version": "6.2.0",
4
4
  "description": "Styleable set of components for React Native applications",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -25,14 +25,14 @@
25
25
  "html-entities": "1.3.1",
26
26
  "htmlparser2": "3.10.1",
27
27
  "lodash": "4.17.21",
28
- "lottie-ios": "3.4.0",
29
- "lottie-react-native": "5.1.4",
28
+ "lottie-ios": "4.2.0",
29
+ "lottie-react-native": "6.1.2",
30
30
  "prop-types": "15.8.1",
31
31
  "qs": "6.9.3",
32
32
  "react-native-device-info": "9.0.2",
33
33
  "react-native-lightbox-v2": "0.9.0",
34
34
  "react-native-linear-gradient": "2.6.2",
35
- "react-native-modal": "11.7.0",
35
+ "react-native-modal": "13.0.1",
36
36
  "react-native-render-html": "4.2.5",
37
37
  "react-native-render-html-table-bridge": "0.6.0",
38
38
  "react-native-svg": "12.3.0",
@@ -63,6 +63,7 @@
63
63
  "eslint-plugin-simple-import-sort": "7.0.0",
64
64
  "jest": "27.5.1",
65
65
  "metro-react-native-babel-preset": "0.66.2",
66
+ "path": "0.12.7",
66
67
  "prettier": "1.19.1",
67
68
  "react": "17.0.2",
68
69
  "react-dom": "16.9.0",
@@ -88,7 +89,11 @@
88
89
  "url": "git+ssh://git@github.com:shoutem/ui.git"
89
90
  },
90
91
  "license": "BSD-3-Clause",
91
- "maintainers": [
92
+ "contributors": [
93
+ {
94
+ "email": "majaklajic@gmail.com",
95
+ "name": "majaklajic"
96
+ },
92
97
  {
93
98
  "email": "lucija.tatarevic@shoutem.com",
94
99
  "name": "ltatarev"
package/theme.js CHANGED
@@ -73,7 +73,6 @@ export function resolveFontFamily(
73
73
  fontStyle = 'normal',
74
74
  ) {
75
75
  if (Platform.OS === 'ios') {
76
- console.log('fontName', fontName);
77
76
  return fontName;
78
77
  }
79
78
 
@@ -1,6 +0,0 @@
1
- // Autolinking works for iOS only. Android assets folder needs to be updated manually.
2
- module.exports = {
3
- dependency: {
4
- assets: ['fonts'],
5
- },
6
- };