Skip to content

Commit cd040d9

Browse files
katscottmarzolfb
authored andcommitted
Cleaning up example project (capitalone#34)
- each chart type is separated on different components for ease of seeing exactly what is involved in a single chart (vs everything all at once) - menu for navigation between charts - documentation moved to wiki
1 parent 06de8e4 commit cd040d9

22 files changed

+1417
-1897
lines changed

README.md

+13-939
Large diffs are not rendered by default.

example/.flowconfig

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
# Ignore unexpected extra @providesModule
1919
.*/node_modules/commoner/test/source/widget/share.js
20+
.*/node_modules/.*/node_modules/fbjs/.*
2021

2122
# Ignore duplicate module providers
2223
# For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root
@@ -48,11 +49,11 @@ suppress_type=$FlowIssue
4849
suppress_type=$FlowFixMe
4950
suppress_type=$FixMe
5051

51-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-2]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
52-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-2]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
52+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-3]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
53+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-3]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
5354
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
5455

5556
unsafe.enable_getters_and_setters=true
5657

5758
[version]
58-
^0.32.0
59+
^0.33.0

example/android/app/src/main/java/com/example/MainApplication.java

+9-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
import android.util.Log;
55

66
import com.facebook.react.ReactApplication;
7-
import com.horcrux.svg.RNSvgPackage;
87
import com.facebook.react.ReactInstanceManager;
98
import com.facebook.react.ReactNativeHost;
109
import com.facebook.react.ReactPackage;
1110
import com.facebook.react.shell.MainReactPackage;
11+
import com.facebook.soloader.SoLoader;
1212

1313
import java.util.Arrays;
1414
import java.util.List;
@@ -24,14 +24,19 @@ protected boolean getUseDeveloperSupport() {
2424
@Override
2525
protected List<ReactPackage> getPackages() {
2626
return Arrays.<ReactPackage>asList(
27-
new MainReactPackage(),
28-
new RNSvgPackage()
27+
new MainReactPackage()
2928
);
3029
}
3130
};
3231

3332
@Override
3433
public ReactNativeHost getReactNativeHost() {
35-
return mReactNativeHost;
34+
return mReactNativeHost;
35+
}
36+
37+
@Override
38+
public void onCreate() {
39+
super.onCreate();
40+
SoLoader.init(this, /* native exopackage */ false);
3641
}
3742
}

0 commit comments

Comments
 (0)