1

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.

0

1 Answer 1

1

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.