plotline-engage 5.5.1 → 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.
- package/android/build.gradle +1 -1
- package/index.js +4 -4
- package/package.json +1 -1
package/android/build.gradle
CHANGED
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
|
/>
|