Skip to content

zhxiaogg/react-native-bmk-demo

Repository files navigation

react-native-bmk demo

demo.gif

Usage (for react-native-bmk)

step 1. install npm package

npm install react-native-bmk --save

step 2. add baidu map sdk to the .xcodeproj

see configure sdk

step 3. setup baidu map sdk before app starts

see set up map manager

step 4. create your react native view

in your 'index.ios.js' file:

import BMKMapView from 'react-native-bmk'

render() {
  return (
      <View style={styles.container}>
        <BMKMapView style={styles.map} />
      </View>
    );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    paddingLeft: 0,
  },
  map: {
    flex: 1,
  },
});

About

demonstration on how to use the react-native-bmk lib.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages