I understand it is Alpha, however, I am desperately seeking a cross-platform Android / iOS line chart for react native.
1) Does anyone know if a React Native WebView could host this ?
2) Is a react-native version expected anytime soon?
( I am willing to take Alpha risks and help provide feedback )
I guess react native is not usable at this time.
I get error: Unsupported architecture when I install.
http://formidable.com/open-source/victory/docs
{
"name": "HelloVictoryPie",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"react": "15.0.2",
"react-native": "0.26.2",
"victory": "^0.8.0"
}
}
Then:
npm install victory
npm install victory
[email protected] install /Users/edward3/Documents/projects/react-native/HelloVictoryPie/node_modules/bufferutil
node-gyp rebuild
2016-06-14 10:54:21.837 xcodebuild[16196:500734] Build settings from command line:
2016-06-14 10:54:21.838 xcodebuild[16196:500734] ENABLE_BITCODE = NO
2016-06-14 10:54:21.838 xcodebuild[16196:500734] SWIFT_DISABLE_REQUIRED_ARCLITE = YES
2016-06-14 10:54:21.838 xcodebuild[16196:500734] SWIFT_LINK_OBJC_RUNTIME = YES
2016-06-14 10:54:21.838 xcodebuild[16196:500734] TOOLCHAINS = com.apple.dt.toolchain.XcodeDefault
2016-06-14 10:54:21.838 xcodebuild[16196:500734] XCODE_DEFAULT_TOOLCHAIN_OVERRIDE = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:7:
In file included from /Users/edward3/.node-gyp/5.9.1/include/node/v8.h:19:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/include/stdint.h:63:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/stdint.h:52:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/sys/_types.h:32:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/sys/cdefs.h:707:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from ../src/bufferutil.cc:7:
In file included from /Users/edward3/.node-gyp/5.9.1/include/node/v8.h:19:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/include/stdint.h:63:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/stdint.h:52:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from ../src/bufferutil.cc:7:
In file included from /Users/edward3/.node-gyp/5.9.1/include/node/v8.h:19:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/include/stdint.h:63:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/stdint.h:52:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean
'uint64_t'?
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
@esutton look for Victory-Native at the end of the week!
Any update on Victory-Native?
Any updates?
@rgoldiez @txizzle check out victory-native-chart and victory-native-pie. I haven't tried it out in a webview, but these should be working in react native apps on ios at least. There are still a few bugs to work out (_i.e._ events are not yet working on native), but you should be able to get started :)
@boygirl - I'd love to try to incorporate this into one of my projects (I'm using RN 0.29.2). I went to the victory-chart-native project to look at which dependencies to add (react-native-svg, victory-core-native, and victory-chart looked to be the ones) and I ran into conflicts when starting the react native packager.
Most helpful comment
@esutton look for Victory-Native at the end of the week!