Comments (15)
@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.
i just write 'import CameraRative-camera-roll-picker';' in my index.os.js, then it sendout an error like this
from react-native-camera-roll-picker.
@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.
@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.
yes, i do the 'npm install react-native-camera-roll-picker --save'
from react-native-camera-roll-picker.
@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.
from react-native-camera-roll-picker.
It should be under your project. /RNTestDemo/node_modules/react-native-camera-roll-picker/
from react-native-camera-roll-picker.
from react-native-camera-roll-picker.
ok. How about try the solution from the error message or facebook/react-native#4968.
from react-native-camera-roll-picker.
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.
@wootwoot1234 In my example, I am running react native 0.30.0, and it works fine.
from react-native-camera-roll-picker.
I Got the similar error as @wootwoot1234 can you please tell me how to solve it..
from react-native-camera-roll-picker.
@jeanpan I think we can close this
from react-native-camera-roll-picker.
const module = require('module-name').default;
worked for me.
from react-native-camera-roll-picker.
Related Issues (20)
- How to restrict image picker to show images from specific gallery folder (DCIM/Camera)
- Need a changelog for v2 HOT 2
- Cannot read property of 'getPhotos' of underfined HOT 2
- Doesn't work for vidoes assetType
- Can we open camera from photo list page?
- Still get CameraRoll error even after reinstalling the package to newer version
- Callback function no longer returns the same data HOT 1
- Absolute Path not found HOT 1
- Null is not an object evaluating _nativeInterface.default.getPhotos
- Add support for groupTypes and groupName
- Images not rendering on Huawei phones
- Infinite loop on pixel phone
- Sealed this.state.selected array
- Update ListView to Flatlist HOT 3
- Need to show Image folders
- prop remove selectedMarker HOT 1
- Is it work now? HOT 2
- render() method in imageItem.js is calling N number of times
- Upgrade to latest react native HOT 1
- TypeError: Cannot read property 'getPhotos' of undefined 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 react-native-camera-roll-picker.