Skip to content

Commit

Permalink
fix: 删除无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyatong committed Sep 26, 2024
1 parent 5e3b519 commit 305215f
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions src/packages/popup/popup.rn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,34 +258,36 @@ export const Popup: FunctionComponent<
)
}
}
const renderPop = () => {
return (
<>
{innerVisible ? (
<View
ref={refObject}
style={popStyles}
className={popClassName}
onClick={onHandleClick}
catchMove={lockScroll}
>
{renderTitle()}
{showChildren ? children : ''}
</View>
) : null}
</>
)
}
// const renderPop = () => {
// return (
// <>
// {innerVisible ? (
// <View
// ref={refObject}
// style={popStyles}
// className={popClassName}
// onClick={onHandleClick}
// catchMove={lockScroll}
// >
// {renderTitle()}
// {showChildren ? children : ''}
// </View>
// ) : null}
// </>
// )
// }

const renderPopByRN = () => {
const renderPop = () => {
return (
<View
ref={refObject}
style={{
position: 'absolute',
overflow: 'hidden',
...popStyles,
}}
className={popClassName}
onClick={onHandleClick}
>
{renderTitle()}
{showChildren ? children : ''}
Expand Down Expand Up @@ -321,7 +323,7 @@ export const Popup: FunctionComponent<
/>
</TouchableOpacity>
) : null}
{renderPopByRN()}
{renderPop()}
</Modal>
)
}
Expand Down

0 comments on commit 305215f

Please sign in to comment.