Skip to content
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

请问下,在rn0.18上怎么使用 #8

Open
liiklin opened this issue Feb 3, 2016 · 1 comment
Open

请问下,在rn0.18上怎么使用 #8

liiklin opened this issue Feb 3, 2016 · 1 comment

Comments

@liiklin
Copy link

liiklin commented Feb 3, 2016

请问下,在rn0.18上怎么使用?

@xuyannan
Copy link

react-native@0.19.0

MainActivity.java:

...
import com.bee.baidumapview.*; // <<---引入包
...
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        SDKInitializer.initialize(getApplicationContext()); // <<----初始化
    }
...
    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
        new MainReactPackage(),
        new BaiduMapReactPackage(this) //<<---导入包
      );
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants