forked from software-mansion/react-native-svg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade example`s react-native version to 0.29.0
- Loading branch information
1 parent
27a70b0
commit fabefb7
Showing
10 changed files
with
347 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ project.xcworkspace | |
.idea | ||
.gradle | ||
local.properties | ||
build | ||
|
||
# node.js | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
Example/android/app/src/main/java/com/artsvgexample/MainApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.artsvgexample; | ||
|
||
import android.app.Application; | ||
import android.util.Log; | ||
import com.horcrux.svg.RNSvgPackage; | ||
import com.facebook.react.ReactApplication; | ||
import com.facebook.react.ReactInstanceManager; | ||
import com.facebook.react.ReactNativeHost; | ||
import com.facebook.react.ReactPackage; | ||
import com.facebook.react.shell.MainReactPackage; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
public class MainApplication extends Application implements ReactApplication { | ||
|
||
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { | ||
@Override | ||
protected boolean getUseDeveloperSupport() { | ||
return BuildConfig.DEBUG; | ||
} | ||
|
||
@Override | ||
protected List<ReactPackage> getPackages() { | ||
return Arrays.<ReactPackage>asList( | ||
new MainReactPackage(), | ||
new RNSvgPackage() | ||
); | ||
} | ||
}; | ||
|
||
@Override | ||
public ReactNativeHost getReactNativeHost() { | ||
return mReactNativeHost; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"name": "ArtSvgExample", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"start": "react-native start" | ||
}, | ||
"dependencies": { | ||
"react": "^15.1.0", | ||
"react-native": "^0.27.0", | ||
"react-native-root-modal": "^1.0.4", | ||
"react-native-svg": "../" | ||
} | ||
"name": "ArtSvgExample", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"start": "react-native start" | ||
}, | ||
"dependencies": { | ||
"react": "^15.1.0", | ||
"react-native": "^0.29.0", | ||
"react-native-root-modal": "^1.0.4", | ||
"react-native-svg": "../" | ||
} | ||
} |
Oops, something went wrong.