arun rajesh
arun rajesh

Reputation: 181

React native Unknown plugin error

I am trying to create a sample map project.It gives me unknown plugin error.

Below is the Code:

import MapView from 'react-native-maps'

export default class mapTestProject extends Component {
  render() {
    return (
      <MapView>
         style = {styles.map}
         showsUserLocation = {false}
         followUserLocation = {false}
         zoomEnabled = {true}
      />
    );
  }
}

const styles = StyleSheet.create({
  map: {
      height: 400,
      marginTop: 80
   },
});

AppRegistry.registerComponent('mapTestProject', () => mapTestProject);

Error Message here: enter image description here Please help me on fixing this issue.

Upvotes: 1

Views: 219

Answers (1)

coder hacker
coder hacker

Reputation: 4868

Looks like you don't have required module. It should automatically have resolved dependency, but something seems to be wrong. You can manually install the module

npm install module-resolver --save

Upvotes: 1

Related Questions