plotline-engage 5.5.0 → 5.5.2

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.
@@ -40,6 +40,6 @@ repositories {
40
40
 
41
41
  dependencies {
42
42
  implementation 'com.facebook.react:react-native:+'
43
- implementation 'com.gitlab.plotline:plotline-android-sdk:5.0.8'
43
+ implementation 'com.gitlab.plotline:plotline-android-sdk:5.1.0'
44
44
  }
45
45
 
package/index.js CHANGED
@@ -217,7 +217,7 @@ const PlotlineView = requireNativeComponent('PlotlineView');
217
217
  const PlotlineWidget = ({ testID }) => {
218
218
  const [size, setSize] = useState({ width: '100%', height: 0 });
219
219
  const [layout, setLayout] = useState(null);
220
-
220
+
221
221
  useEffect(() => {
222
222
 
223
223
  if (Platform.OS === 'android') return;
@@ -231,7 +231,7 @@ const PlotlineWidget = ({ testID }) => {
231
231
  }
232
232
  }
233
233
  );
234
-
234
+
235
235
  return () => {
236
236
  subscription.remove();
237
237
  };
@@ -257,8 +257,8 @@ const PlotlineWidget = ({ testID }) => {
257
257
  onLayout={(e) =>{
258
258
  setLayout(e.nativeEvent.layout);
259
259
  }}>
260
- <PlotlineView
261
- testID={testID}
260
+ <PlotlineView
261
+ testID={testID}
262
262
  style={{ width: size.width, height: size.height }}
263
263
  parentWidth={layout ? layout.width.toString() : "0"}
264
264
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plotline-engage",
3
- "version": "5.5.0",
3
+ "version": "5.5.2",
4
4
  "description": "React Native plugin for Plotline",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"