Skip to content

Commit

Permalink
Merge pull request #103 from deadcoder0904/master
Browse files Browse the repository at this point in the history
Format Code Blocks
  • Loading branch information
crazycodeboy authored Oct 16, 2017
2 parents 6937695 + ca24bee commit 4ba298a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ Run `npm i react-native-splash-screen --save`
**Android:**

1. In your android/settings.gradle file, make the following additions:
```
```java
include ':react-native-splash-screen'
project(':react-native-splash-screen').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-splash-screen/android')
```

2. In your android/app/build.gradle file, add the `:react-native-splash-screen` project as a compile-time dependency:

```
```java
...
dependencies {
...
Expand Down Expand Up @@ -163,7 +163,7 @@ Import `react-native-splash-screen` in your JS file.
Create a file called `launch_screen.xml` in `app/src/main/res/layout` (create the `layout`-folder if it doesn't exist). The contents of the file should be the following:
```
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
Expand Down Expand Up @@ -211,7 +211,7 @@ Customize your splash screen via LaunchImage or LaunchScreen.xib,

Use like so:

```JavaScript
```javascript
import SplashScreen from 'react-native-splash-screen'

export default class WelcomePage extends Component {
Expand Down

0 comments on commit 4ba298a

Please # to comment.