Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(components-rn): rn上Block组件会被编译成View组件,会有样式问题 close #5505 #6427

Merged
merged 1 commit into from
May 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion packages/taro-components-rn/src/components/Block/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import { _View as _Block } from '../View/index'
import * as React from 'react'
import { ViewProps } from '../View/PropsType'

// _Block.displayName = '_Block'

const _Block: React.SFC<ViewProps> = (props) => {
return (
<>
{props.children}
</>
)
}

export { _Block }
export default _Block