react-native-safe-area-context icon indicating copy to clipboard operation
react-native-safe-area-context copied to clipboard

Add mocks for hooks to jest/mock.js

Open cp opened this issue 3 years ago • 1 comments

Summary

Building off the mocks added here, this PR adds mocks for the useSafeAreaInsets and useSafeAreaFrame hooks.

Test Plan

I do not see any tests for this file. Open to feedback here, of course!

cp avatar Jan 11 '22 20:01 cp

Would be nice if this can be merged!

WillyRamirez avatar Jul 07 '22 09:07 WillyRamirez

I'm currently mocking this myself manually but it would be great if this was included!

DannyBiezen avatar Jan 05 '23 16:01 DannyBiezen

@janicduplessis any reason not to merge this?

jacobp100 avatar Jan 19 '23 10:01 jacobp100

@cp Could you resolve conflicts?

jacobp100 avatar Jan 19 '23 16:01 jacobp100

@jacobp100 I just merged main in to resolve conflicts!

cp avatar Jan 19 '23 17:01 cp