Git Product home page Git Product logo

Comments (15)

jeanpan avatar jeanpan commented on June 8, 2024

@Cell-- I can't get your problem. If you have any problem with usage, you can reference Example code. https://github.com/jeanpan/react-native-camera-roll-picker/blob/master/Example/index.ios.js
Or you can provide me your code so I can help you. Thanks.

from react-native-camera-roll-picker.

Cell-- avatar Cell-- commented on June 8, 2024

i just write 'import CameraRative-camera-roll-picker';' in my index.os.js, then it sendout an error like this

simulator screen shot 2016 7 21 4 20 53

from react-native-camera-roll-picker.

jeanpan avatar jeanpan commented on June 8, 2024

@Cell-- I think you didn't include the component correctly. Could you please reference https://github.com/jeanpan/react-native-camera-roll-picker/blob/master/README.md and https://github.com/jeanpan/react-native-camera-roll-picker/tree/master/Example.
BTW. It should be import CameraRollPicker from "react-native-camera-roll-picker"; not import CameraRative-camera-roll-picker.

from react-native-camera-roll-picker.

jeanpan avatar jeanpan commented on June 8, 2024

@Cell--
https://github.com/jeanpan/react-native-camera-roll-picker/blob/master/README.md#add-to-project

Did you do npm install react-native-camera-roll-picker --save before import the component ?

from react-native-camera-roll-picker.

Cell-- avatar Cell-- commented on June 8, 2024

yes, i do the 'npm install react-native-camera-roll-picker --save'

from react-native-camera-roll-picker.

jeanpan avatar jeanpan commented on June 8, 2024

@Cell-- Can you find react-native-camera-roll-picker folder under node_modules ? or maybe you can try solution from facebook/react-native#4968

from react-native-camera-roll-picker.

Cell-- avatar Cell-- commented on June 8, 2024

i can find
2016-07-21 5 39 47

from react-native-camera-roll-picker.

jeanpan avatar jeanpan commented on June 8, 2024

It should be under your project. /RNTestDemo/node_modules/react-native-camera-roll-picker/

from react-native-camera-roll-picker.

Cell-- avatar Cell-- commented on June 8, 2024

yes
2016-07-21 5 46 30

from react-native-camera-roll-picker.

jeanpan avatar jeanpan commented on June 8, 2024

ok. How about try the solution from the error message or facebook/react-native#4968.

from react-native-camera-roll-picker.

wootwoot1234 avatar wootwoot1234 commented on June 8, 2024

I'm getting a similar error. The exmple works fine but for some reason when I add it to my existing project I get this:

2016-07-26 18:32:58.275 [warn][tid:com.facebook.react.JavaScript] Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of `ListView`.
2016-07-26 18:32:58.284 [error][tid:com.facebook.react.JavaScript] Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `ListView`.
2016-07-26 18:32:58.287 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `ListView`.
2016-07-26 18:32:58.502 [warn][tid:com.facebook.react.JavaScript] Warning: exception thrown by devtool while handling onSetChildren: Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().

I'm running react native 0.27.2, is that an issue?

from react-native-camera-roll-picker.

jeanpan avatar jeanpan commented on June 8, 2024

@wootwoot1234 In my example, I am running react native 0.30.0, and it works fine.

from react-native-camera-roll-picker.

swaroopa94 avatar swaroopa94 commented on June 8, 2024

I Got the similar error as @wootwoot1234 can you please tell me how to solve it..

from react-native-camera-roll-picker.

sibelius avatar sibelius commented on June 8, 2024

@jeanpan I think we can close this

from react-native-camera-roll-picker.

nrathi avatar nrathi commented on June 8, 2024

const module = require('module-name').default; worked for me.

from react-native-camera-roll-picker.

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.