-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react native using xmldoc to parser xml #38
Comments
Hm, it looks like React Native is not pulling in the |
thanks!!! |
omg thanks @leechance ...weird that it was complaining about sax and not buffer/stream. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i want to use xmldoc to parse an in-memory XML string in my React-Native Project
in addtion,i have to 'npm install xmldoc' an the directory of my project.
in this case
`import React, { Component } from 'react';
import { AppRegistry, Text, View } from 'react-native';
class AwesomeProject extends Component {
render() {
this.testXml();
return (
<View style={{alignItems: 'center'}}>
浪费时间
);
}
testXml(){
// Demonstrate parsing an in-memory XML string
var xmldoc = require('xmldoc');
var xmlString = '';
}
}
AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);`
but caused an error
*Unable to resolve module stream from /Volumes/MAC/ReactNative/AwesomeProject/node_modules/sax/lib/sax.js: Unable to find this module in its module map or any of the node_modules directories under /Volumes/node_modules/stream and its parent directories
*
how to solve the issue ,can you help me?
The text was updated successfully, but these errors were encountered: