Skip to content

Commit

Permalink
update Charts to 3.2.2, update example.
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxudong committed Mar 4, 2019
1 parent 51ea552 commit b370511
Show file tree
Hide file tree
Showing 15 changed files with 2,088 additions and 2,197 deletions.
1 change: 1 addition & 0 deletions Example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ android {
}

dependencies {
implementation project(':react-native-gesture-handler')
implementation project(':react-native-charts-wrapper')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:26.+"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.app.Application;

import com.facebook.react.ReactApplication;
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
import com.facebook.react.bridge.ReadableNativeArray;
import com.facebook.react.bridge.ReadableNativeMap;
import com.github.wuxudong.rncharts.MPAndroidChartPackage;
Expand All @@ -27,6 +28,7 @@ public boolean getUseDeveloperSupport() {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNGestureHandlerPackage(),
new MPAndroidChartPackage()
);
}
Expand Down
2 changes: 2 additions & 0 deletions Example/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
rootProject.name = 'Example'
include ':react-native-gesture-handler'
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android')
include ':react-native-charts-wrapper'
project(':react-native-charts-wrapper').projectDir = new File(rootProject.projectDir, '../../android')

Expand Down
6 changes: 3 additions & 3 deletions Example/app/ChartsListScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Text,
} from 'react-native';

import {StackNavigator, SafeAreaView} from 'react-navigation';
import {createStackNavigator, createAppContainer, SafeAreaView} from 'react-navigation';

import AxisLineChartScreen from './AxisLineChartScreen';
import MultipleChartScreen from './MultipleChartScreen';
Expand Down Expand Up @@ -200,7 +200,7 @@ MainScreen.navigationOptions = {
title: 'Home',
};

const ChartsExplorer = StackNavigator(
const ChartsExplorer = createStackNavigator(
{
Index: {
screen: MainScreen,
Expand All @@ -221,4 +221,4 @@ const ChartsExplorer = StackNavigator(
},
);

export default ChartsExplorer;
export default createAppContainer(ChartsExplorer);
2 changes: 2 additions & 0 deletions Example/ios/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
"${BUILT_PRODUCTS_DIR}/Charts/Charts.framework",
"${BUILT_PRODUCTS_DIR}/DoubleConversion/DoubleConversion.framework",
"${BUILT_PRODUCTS_DIR}/Folly/folly.framework",
"${BUILT_PRODUCTS_DIR}/RNGestureHandler/RNGestureHandler.framework",
"${BUILT_PRODUCTS_DIR}/React/React.framework",
"${BUILT_PRODUCTS_DIR}/SwiftyJSON/SwiftyJSON.framework",
"${BUILT_PRODUCTS_DIR}/glog/glog.framework",
Expand All @@ -240,6 +241,7 @@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Charts.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DoubleConversion.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/folly.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RNGestureHandler.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/React.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftyJSON.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/glog.framework",
Expand Down
6 changes: 4 additions & 2 deletions Example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ target 'Example' do
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

pod 'RNCharts', :path => '../../'
pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'

end

swift4 = ['Charts']
Expand All @@ -33,8 +35,8 @@ post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if swift4.include?(target.name)
config.build_settings['SWIFT_VERSION'] = '4.1'
config.build_settings['SWIFT_VERSION'] = '4.2'
end
end
end
end
end
11 changes: 6 additions & 5 deletions Example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
"postinstall": "sed -i '' 's/#import <RCTAnimation\\/RCTValueAnimatedNode.h>/#import \"RCTValueAnimatedNode.h\"/' ./node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h"
},
"dependencies": {
"immutability-helper": "2.4.0",
"lodash": "4.17.5",
"immutability-helper": "2.8.1",
"lodash": "4.17.11",
"moment": "^2.22.2",
"react": "^16.4.1",
"react-native": "^0.56.0",
"react": "^16.8.3",
"react-native": "^0.58.6",
"react-native-charts-wrapper": "file:../",
"react-navigation": "^1.0.0-beta.19"
"react-native-gesture-handler": "^1.0.17",
"react-navigation": "3.3.2"
},
"devDependencies": {
"babel-jest": "21.0.2",
Expand Down
Loading

0 comments on commit b370511

Please sign in to comment.