---
title: "Comment by lee on \"Building custom Android modules for React Native\" | Hashnode"
description: "Thanks for this Sriraman, If I want to simply tweak an existing module e.g. react-native-maps to include map style capability, I need to import com.google.andro"
url: "https://hashnode.com/posts/building-custom-android-modules-for-react-native/577e5018a4b6f17ba3a6e0ff/comment/5817e543ae2865e5ada27bce"
---

[Discussion](https://hashnode.com/posts/building-custom-android-modules-for-react-native/577e5018a4b6f17ba3a6e0ff)

Comment [Building custom Android modules for React Native](https://hashnode.com/posts/building-custom-android-modules-for-react-native/577e5018a4b6f17ba3a6e0ff)

[lee](https://hashnode.com/@lee_dabiker)

[Nov 1, 2016](https://hashnode.com/posts/building-custom-android-modules-for-react-native/577e5018a4b6f17ba3a6e0ff/comment/5817e543ae2865e5ada27bce)

Thanks for this Sriraman, If I want to simply tweak an existing module e.g. react-native-maps to include map style capability, I need to import com.google.android.gms.maps.model.MapStyleOptions; in .java file that extends an Android MapView. However when running the app, it appears the MapStyleOptions is not in scope. Can you give me a clue, what are the steps to make this accessible in the Java? would i need to rebuild somehow from the original master? I don't see a reference to the other imports in this file elsewhere in the project for an example of how it was done.

[Sriraman](https://hashnode.com/@sriraman)

[Nov 2, 2016](https://hashnode.com/posts/building-custom-android-modules-for-react-native/577e5018a4b6f17ba3a6e0ff/comment/5817e543ae2865e5ada27bce#reply-5819705b2ca37f164781f603)

There are two ways to do it. You can create a new react native module and add the react-native-maps as the dependency.
