Comments (7)
This was fixed by using https://github.com/callstack/react-native-testing-library
how did you fix this? I'm using react-native-testing-library
and still facing this error.
from restyle.
This was fixed by using https://github.com/callstack/react-native-testing-library
from restyle.
I think adding some instructions to README regarding testing, in general, would be quite beneficial :)
Apart from the issue, the library looks great, Thanks for your hard work!
from restyle.
@NathHorrigan I'm getting this error still. Could you provide a little more detail on how you fixed this?
from restyle.
still facing this error too
from restyle.
We've migrated to the useWindowDimensions
from react-native
. We mock this hook in the library as such: https://github.com/Shopify/restyle/blob/master/src/test/createRestyleComponent.test.tsx#L53-L55
Please, reopen with reproduction steps if this is still an issue.
from restyle.
@fortmarek is there any way to use useWindowDimensions outside component like in util functions we can use Dimensions.get in util function but after React Native 0.73.8 upgrade jest unit tests are failing for below error so could you or any one please help regarding this issue
TypeError: Dimensions.get is not a function
from restyle.
Related Issues (20)
- Turning theme into regular values
- Meta: Turn on GitHub Discussions for repository HOT 1
- Let Text component support flex prop HOT 1
- React.Children.only expected to receive a single React element child.
- Export useDimensions hook? HOT 4
- Is this Library abandoned? HOT 5
- using createVariant throws: undefined is not a function HOT 1
- Flex gap support RN 0.71.X
- How to wrap KeyboardAvoidingView in Box? HOT 1
- Breaking Change in update from 2.1.0 to 2.2.0/2.3.0?
- Custom themed components are losing spacing props after upgrade from 2.3.0 to 2.4.0 HOT 4
- TS error when attempting to create multiple variants with different keys in the theme object HOT 4
- TS error: When I use position restyleFunctions HOT 5
- React Native 0.72 support HOT 2
- Theming is not working as expected HOT 1
- Error: Value '#0F0E0F' does not exist in theme['colors']
- undefined is not a function [buildStyle(@shopify/restyle/dist/composeRestyleFunctions)] HOT 1
- error in composeRestyleFunctions HOT 2
- composeRestyleFunctions not accepting `border` HOT 1
- Cannot make custom component HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restyle.