Code Monkey home page Code Monkey logo

Comments (35)

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024
Unable to resolve module Dimensions from /Users/kartikeychauhan/Documents/testcodes/react-native-test/HelloTest/node_modules/react-native-side-menu/index.js
Unable to resolve module Dimensions from /Users/kartikeychauhan/Documents/testcodes/react-native-test/HelloTest/node_modules/react-native-side-menu/styles.js

👍

Although it does work perfectly 😄

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

v0.9.3 has been released with this fix

from react-native-side-menu.

grabbou avatar grabbou commented on July 22, 2024

Thank you <3

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

If it works, you can close an issue

from react-native-side-menu.

grabbou avatar grabbou commented on July 22, 2024

Will check in a bit, need to upgrate to React 0.7 again :)

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

I feel sorry that you need to use prev. versions because of my components :(

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

Doesn't work for me :(

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

@piyushchauhan2011 Can you provide some more feedback what exactly doesn't work, and which versions you're using?

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

I'm using version 0.7.1 react-native and it says Dimensions.get not an object.

I don't understand what is correct way.

var React, {
    StyleSheet,
    Dimensions,
} = require('react-native');

OR

var { Dimensions, } = require('Dimensions');
var React = require('react-native');

OR

var { React, Dimensions } = require('react-native');
var {
    StyleSheet,
} = React;

I do know that import { Dimensions } from 'react-native' is the newest api of importing stuff in javascript and is correct way but react-native doesn't support this way of doing things.

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

Still using 0.9.2 version 😄

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

AFAIK, Dimensions should be included from react-native package. That should be fixed in 0.9.2. Please, let me know if it doesn't work for you, @piyushchauhan2011

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

I'm currently using 0.9.2 version which works fine but 0.9.3 version doesn't work for me. @Kureev

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

Can you tell me why? @piyushchauhan2011

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

This is the error i'm getting where index.js:12 is the file from your repository which have the code for Dimensions.
I have tried all the way of inclusion of Dimensions, but can't figure it out.

screen shot 2015-07-17 at 4 11 58 pm

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

Do you know which is the correct way of requiring dimensions ?

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

Seems I don't. Will check the changelog and fix it asap

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

I think they are still using the old way of requiring the dimensions.
This is from the master branch.

screen shot 2015-07-17 at 4 40 10 pm

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

I think you can check out 0.9.4, @piyushchauhan2011

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

Cool.

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

It says.

screen shot 2015-07-17 at 5 52 33 pm

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

Ah, it doesn't support class variables without flag, right

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

I think you removed the constructor too 😄

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

@piyushchauhan2011 constructor isn't necessary to override if you use class variables. But babel supports it only with stage=1 enabled (stage=2 enabled by default). I've changed it back in 0.9.5. Please, take a look (unable to test it now)

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

Cool I checked the newest version, perfect work 👍 Thanks mate really appreciate it. Saved a lot of hours for me 🍺 @Kureev
Cheers! 0.9.5

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

I also wanted to ask you about how to include testing in a project maybe later, if you have suggestion or links please paste it here 😃 @Kureev

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

I'd like to do it, but now I'm really busy at work, so I don't have that much time for open source. I'm trying to improve it, but step by step. I don't have any proposal now, but I'm open to suggestions.

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

@grabbou I've tried to change it to require from react-native, but for 0.7 it doesn't work. So I'll keep it current way until they would be close to deprecate it.

from react-native-side-menu.

piyushchauhan2011 avatar piyushchauhan2011 commented on July 22, 2024

👍 I think it will change in 0.8 release we have to change it then.

from react-native-side-menu.

grabbou avatar grabbou commented on July 22, 2024

Well, it was working with 0.7.1 yesterday, not sure why there are such differences ;( I am gonna fork it temporarily to see if I can upgrade, will let you know.

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

@grabbou Sure, you can also check 0.9.3 patch commit, I've tried exactly you proposed in subj and it seems fb still doesn't support it or I've made something wrong :)

from react-native-side-menu.

grabbou avatar grabbou commented on July 22, 2024

Ah yeah, that's true. Thanks!

from react-native-side-menu.

grabbou avatar grabbou commented on July 22, 2024

Ok, I confirm it was false issue. It's not yet there in React 0.7, can we move back to previous version on master? :)

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

I think we can just create a branch like [email protected] and agregate all breaking changes etc there, and when it'll be stable, we can just merge it into master

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

But answering your question, you can be explicit about the version you want to use: [email protected]

from react-native-side-menu.

grabbou avatar grabbou commented on July 22, 2024

Yeah, that's what I did. Just worried some bugs / features might be implemented in the meantime :) But maybe it's worth waiting till 0.8/0.9 reaches the npm.

from react-native-side-menu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.