-
Notifications
You must be signed in to change notification settings - Fork 375
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
feat(View): add view component style. #1478
Conversation
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
} | ||
} | ||
|
||
const processTextChildren = (children: React.ReactElement, textStyle:ViewStyle = {}) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为啥需要这个啊
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
packages/webpack-plugin/lib/runtime/components/react/mpx-view.tsx
Outdated
Show resolved
Hide resolved
|
||
function wrapImage(imageStyle) { | ||
const show = useRef(false) | ||
const imageSize = useRef(null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function useStateRef(initial){
const ref = useRef(initial)
const [_, setState] = useState(initial)
return [ref, (newState)=>{
ref.current = newState
setState(newState)
}]
}
No description provided.