Skip to content

Commit fc5d1b8

Browse files
authored
Merge pull request #378 from tek256/dev-5.x
Remove __onLayout e.persist on web
2 parents d1df21a + 3b7994f commit fc5d1b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Picker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,8 @@ function Picker({
537537
* onLayout.
538538
*/
539539
const __onLayout = useCallback((e) => {
540-
e.persist();
540+
if(Platform !== "web")
541+
e.persist();
541542

542543
onLayout(e);
543544

0 commit comments

Comments
 (0)