This website requires JavaScript.
Explore
Help
Sign In
haskal
/
jiti-meet
Watch
1
Star
0
Fork
You've already forked jiti-meet
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
3e744c5ffe
jiti-meet
/
react
/
features
/
large-video
/
components
/
styles.js
5 lines
64 B
JavaScript
Raw
Normal View
History
Unescape
Escape
[RN] Dynamically adjust LargeView's Avatar to available size When in PiP mode the LargeView will not be large enough to hold the avatar (for those interested in the details, our avatar's size is 200, and in PiP mode the app is resized to about 150). In order to solve it, this PR refactors how the avatar style is passed along, reducing it to a single "size" prop. With this only prop, the Avatar compononent will compute the width, height and borderRadius, plus deal with some Android shenanigans. In addition, the LargeView component now uses DimensionsDetector to check its own size and adjust the size prop passed to the Avatar component as needed.
2018-02-05 10:57:40 +00:00
/
*
*
*
Size
for
the
Avatar
.
*
/
export
const
AVATAR
_SIZE
=
200
;