@@ -54,11 +54,9 @@ export const splitViewImpl = React.forwardRef((props, ref) => {
54 style: [{ flexDirection: "row" }, style],
54 style: [{ flexDirection: "row" }, style],
57− React.createElement(
57+ leftChild && React.cloneElement(leftChild, {
59− { style: { width: sidebarWidth, overflow: "hidden" } },
58+ style: [leftChild.props.style, { width: sidebarWidth, overflow: "hidden" }],
62 React.createElement(View, {
60 React.createElement(View, {
63 ...panRef.current.panHandlers,
61 ...panRef.current.panHandlers,
64 onMouseEnter: () => setHovered(true),
62 onMouseEnter: () => setHovered(true),
@@ -79,10 +77,8 @@ export const splitViewImpl = React.forwardRef((props, ref) => {
79 pointerEvents: "none",
77 pointerEvents: "none",
82− React.createElement(
80+ rightChild && React.cloneElement(rightChild, {
84− { style: { flex: 1, overflow: "hidden" } },
81+ style: [rightChild.props.style, { flex: 1, overflow: "hidden" }],