Skip to content

Commit

Permalink
Added import statements (#475)
Browse files Browse the repository at this point in the history
* Added import statements

* Update native-modules-android.md
  • Loading branch information
Christoph authored and hramos committed Aug 8, 2018
1 parent 2430355 commit e94df90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/native-modules-android.md
Expand Up @@ -140,6 +140,12 @@ public class CustomToastPackage implements ReactPackage {
The package needs to be provided in the `getPackages` method of the `MainApplication.java` file. This file exists under the android folder in your react-native application directory. The path to this file is: `android/app/src/main/java/com/your-app-name/MainApplication.java`.

```java
// MainApplication.java

...
import com.your-app-name.CustomToastPackage; // <-- Add this line with your package name.
...

protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
Expand Down

0 comments on commit e94df90

Please sign in to comment.