Comments (15)
Hi,
you can fix it by changing the following in dist/index.js:
from:
var _Dimensions = require('Dimensions');
var _Dimensions2 = _interopRequireDefault(_Dimensions);
var _Dimensions$get = _Dimensions2['default'].get('window');
to
var React = require('react-native');
var {
Dimensions
} = React;
var {width, height} = Dimensions.get('window');
Regards
Philipp
from react-native-swiper.
Upvote! π
Sent from my iPhone
On Jul 29, 2015, at 21:58, Philipp Krone [email protected] wrote:
Hello,
I get the following warning in the packager:
Unable to resolve module Dimensions from .... dist.js
Any idea how to fix that? Everything is working correctly, just the message in the packager.Regards
β
Reply to this email directly or view it on GitHub.
from react-native-swiper.
π
from react-native-swiper.
I still get this error with the current version, is someone updating the npm for this module?
from react-native-swiper.
@leecade I'm getting this error as well...
from react-native-swiper.
@leecade I'm getting this error as well
from react-native-swiper.
I'm getting this error as well
from react-native-swiper.
Same, getting this error in .../dist/index.js
from react-native-swiper.
I'm experiencing the same issue. The full message is:
Unable to resolve module Dimensions from /Users/user/MyApp/node_modules/react-native-swiper/dist/index.js: Invalid directory /Users/node_modules/Dimensions
As far as I can tell the issue is that it's looking in wrong directory for Dimensions module (two levels above what it should be).
from react-native-swiper.
I'm getting this error too, similar to what @viktors described. Xcode can't build after adding this library and example code.
from react-native-swiper.
same error,
this needs to get fixed asap
from react-native-swiper.
Thanks so much @PhilippKrone !
from react-native-swiper.
Waiting on this PR #64
from react-native-swiper.
fixed
from react-native-swiper.
Do what @PhilippKrone said after restart packager. ;)
from react-native-swiper.
Related Issues (20)
- Data is not displayed correctly when the data is changed
- Is this still maintained? Or EOL? HOT 5
- how to prevent user to not come on first screen after the last swipe?
- how to detect swipe left or right HOT 1
- ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types HOT 4
- how to swipe to next screen when user press the button HOT 1
- ε₯½εεζ΄δΊοΌ
- flicker in the area of <Swiper> Component when swiping on the latest version of react-native HOT 4
- Position: aboslute won't make button clickable
- In the case of iPhone, touch is not available when using Flatlist items.
- Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types' HOT 1
- OnIndexChanged
- Just don't use this lib. HOT 3
- [All-iPhone-Device] Two photos are displayed in one picture in the Swiper HOT 1
- Add animation to update pagination dot while swiping HOT 2
- Warning: Failed prop type: The prop `children` is marked as required in `_default`, but its value is `undefined`. HOT 1
- index value will be out of reange after updating the UseState
- How can we make screen transitions by touching dots? How can I add a background to the dots?
- How to adjust spacing of pagination dots ?
- onIndexChanged getting wrong value
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 react-native-swiper.