inkCrazy

inkCrazy

Member Since 6 years ago

Experience Points
1
follower
Lessons Completed
0
follow
Lessons Completed
181
stars
Best Reply Awards
14
repos

4 contributions in the last year

Pinned
⚡ 使用UIPickerView的时候,如果没有滚动时无法获取pickerView上的数据,所以根据网友的CDZPickerViewDemo,进行修改增加了cancelBlock和confirmBlock
⚡ 我的技术博客,欢迎访问https://inkCrazy.github.io
⚡ React Native geolocation module for Android + iOS
⚡ react native amap location
⚡ The best design tools for everything 👉
Activity
Jan
14
1 week ago
Activity icon
issue

inkCrazy issue comment jpush/jpush-react-native

inkCrazy
inkCrazy

Android下要了太多权限

你的运行环境

  • 插件版本: 最新版
  • react-native 版本:最新版

期望效果

代码里去掉非必须的权限申请,改为在文档中建议

实际效果

要了很多的权限(包括但不局限于位置权限)

inkCrazy
inkCrazy

DCEAD584259936BBBAC8F6C0CDDFA435 极光推送你们都什么时候初始化的?

Jan
5
2 weeks ago
started
started time in 2 weeks ago
Dec
21
1 month ago
Dec
10
1 month ago
Activity icon
issue

inkCrazy issue comment ant-design/ant-design-mobile-rn

inkCrazy
inkCrazy

Tried to register two views with the same name RNCViewPager

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

http://www.baidu.com

Steps to reproduce

@ant-design/react-native 使用viewpager1.1.7 另一个组件使用viewpager2.0.1 ,rn0.61.4就会报错说不能注册两个viewpager

What is expected?

将viewpager放到peerDependencies中

What is actually happening?

不能正常运行程序

Environment Info
antd 3.2.0
React react-native 0.61.4
System android&ios
Browser 非浏览器
inkCrazy
inkCrazy

并且我的 node_modules project/node_modules/@react-native-community/viewpager 版本号变为2.0.2

兄弟你最后怎么解决的?

Activity icon
issue

inkCrazy issue comment ant-design/ant-design-mobile-rn

inkCrazy
inkCrazy

Tried to register two views with the same name RNCViewPager

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

http://www.baidu.com

Steps to reproduce

@ant-design/react-native 使用viewpager1.1.7 另一个组件使用viewpager2.0.1 ,rn0.61.4就会报错说不能注册两个viewpager

What is expected?

将viewpager放到peerDependencies中

What is actually happening?

不能正常运行程序

Environment Info
antd 3.2.0
React react-native 0.61.4
System android&ios
Browser 非浏览器
inkCrazy
inkCrazy

"dependencies": { "@ant-design/react-native": "^3.1.11", "@react-native-community/async-storage": "^1.5.0", "axios": "^0.19.0", "dayjs": "^1.8.15", "react": "16.8.3", "react-native": "0.59.10", "react-native-gesture-handler": "1.3.0", "react-native-keyboard-aware-scroll-view": "^0.8.0", "react-native-modal": "^11.1.0", "react-native-nfc-manager": "^1.2.2", "react-native-selfadapt-modal": "^1.1.3", "react-native-splash-screen": "^3.1.1", "react-native-storage": "^1.0.1", "react-navigation": "3.11.0" }, 我加了"resolutions": { "@react-native-community/viewpager": "^2.0.1" }也没用 你们都怎么解决的?

Activity icon
issue

inkCrazy issue comment ant-design/ant-design-mobile-rn

inkCrazy
inkCrazy

从0.57.8升级到0.59.10,Tabs报错

Invariant Violation: Invariant Violation: Invariant Violation: requireNativeComponent: "RNCViewPager" was not found in the UIManager. This error is located at: in RNCViewPager (at ViewPagerAndroid.android.js:272) in ViewPagerAndroid (created by Context.Consumer) in RCTView (at View.js:45) in View (created by Context.Consumer) in WithTheme (created by Tabs) in Tabs (at approve/index.js:428) in RCTView (at View.js:45) in View (at approve/index.js:420) in approveQAList (created by Connect(approveQAList)) in Connect(approveQAList) (at SceneView.js:9) in SceneView (at StackViewLayout.js:478) in RCTView (at View.js:45) in View (at StackViewLayout.js:477) in RCTView (at View.js:45) in View (at StackViewLayout.js:476) in RCTView (at View.js:45) in View (at createAnimatedComponent.js:151) in AnimatedComponent (at screens.native.js:71) in Screen (at StackViewCard.js:42) in Card (at createPointerEventsContainer.js:26) in Container (at StackViewLayout.js:507) in RCTView (at View.js:45) in View (at screens.native.js:101) in ScreenContainer (at StackViewLayout.js:401) in RCTView (at View.js:45) in View (at StackViewLayout.js:400) in StackViewLayout (at withOrientation.js:30) in withOrientation (at StackView.js:49) in RCTView (at View.js:45) in View (at Transitioner.js:141) in Transitioner (at StackView.js:19) in StackView (at createNavigator.js:57) in Navigator (at createKeyboardAwareNavigator.js:11) in KeyboardAwareNavigator (at createNavigationContainer.js:376) in NavigationContainer (at SceneView.js:9) in SceneView (at SwitchView.js:12) in SwitchView (at createNavigator.js:57) in Navigator (at createNavigationContainer.js:376) in NavigationContainer (at reduxify-navigator.js:61) in NavigatorReduxWrapper (at router.js:104) in RCTView (at View.js:45) in View (created by Portal.Host) in Portal.Host (created by Provider) in ThemeProvider (created by Provider) in LocaleProvider (created by Provider) in Provider (at router.js:101) in RCTView (at View.js:45) in View (created by MenuProvider) in RCTView (at View.js:45) in View (created by MenuProvider) in MenuProvider (at router.js:100) in Router (created by Connect(Router)) in Connect(Router) (at apps/index.js:23) in Provider (at dva.js:17) in Unknown (at renderApplication.js:35) in RCTView (at View.js:45) in View (at AppContainer.js:98) in ChildrenWrapper (at wrapRootComponent.js:9) in _class (at wrapRootComponent.js:8) in Root (at AppContainer.js:112) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:34) This error is located at: in NavigationContainer (at SceneView.js:9) in SceneView (at SwitchView.js:12) in SwitchView (at createNavigator.js:57) in Navigator (at createNavigationContainer.js:376) in NavigationContainer (at reduxify-navigator.js:61) in NavigatorReduxWrapper (at router.js:104) in RCTView (at View.js:45) in View (created by Portal.Host) in Portal.Host (created by Provider) in ThemeProvider (created by Provider) in LocaleProvider (created by Provider) in Provider (at router.js:101) in RCTView (at View.js:45) in View (created by MenuProvider) in RCTView (at View.js:45) in View (created by MenuProvider) in MenuProvider (at router.js:100) in Router (created by Connect(Router)) in Connect(Router) (at apps/index.js:23) in Provider (at dva.js:17) in Unknown (at renderApplication.js:35) in RCTView (at View.js:45) in View (at AppContainer.js:98) in ChildrenWrapper (at wrapRootComponent.js:9) in _class (at wrapRootComponent.js:8) in Root (at AppContainer.js:112) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:34) This error is located at: in NavigationContainer (at reduxify-navigator.js:61) in NavigatorReduxWrapper (at router.js:104) in RCTView (at View.js:45) in View (created by Portal.Host) in Portal.Host (created by Provider) in ThemeProvider (created by Provider) in LocaleProvider (created by Provider) in Provider (at router.js:101) in RCTView (at View.js:45) in View (created by MenuProvider) in RCTView (at View.js:45) in View (created by MenuProvider) in MenuProvider (at router.js:100) in Router (created by Connect(Router)) in Connect(Router) (at apps/index.js:23) in Provider (at dva.js:17) in Unknown (at renderApplication.js:35) in RCTView (at View.js:45) in View (at AppContainer.js:98) in ChildrenWrapper (at wrapRootComponent.js:9) in _class (at wrapRootComponent.js:8) in Root (at AppContainer.js:112) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:34)

inkCrazy
inkCrazy

需要安装这么吗? "dependencies": { "@ant-design/react-native": "^3.1.11", "@react-native-community/async-storage": "^1.5.0", "axios": "^0.19.0", "dayjs": "^1.8.15", "react": "16.8.3", "react-native": "0.59.10", "react-native-gesture-handler": "1.3.0", "react-native-keyboard-aware-scroll-view": "^0.8.0", "react-native-modal": "^11.1.0", "react-native-nfc-manager": "^1.2.2", "react-native-selfadapt-modal": "^1.1.3", "react-native-splash-screen": "^3.1.1", "react-native-storage": "^1.0.1", "react-navigation": "3.11.0" },

Activity icon
issue

inkCrazy issue comment ant-design/ant-design-mobile-rn

inkCrazy
inkCrazy

从0.57.8升级到0.59.10,Tabs报错

Invariant Violation: Invariant Violation: Invariant Violation: requireNativeComponent: "RNCViewPager" was not found in the UIManager. This error is located at: in RNCViewPager (at ViewPagerAndroid.android.js:272) in ViewPagerAndroid (created by Context.Consumer) in RCTView (at View.js:45) in View (created by Context.Consumer) in WithTheme (created by Tabs) in Tabs (at approve/index.js:428) in RCTView (at View.js:45) in View (at approve/index.js:420) in approveQAList (created by Connect(approveQAList)) in Connect(approveQAList) (at SceneView.js:9) in SceneView (at StackViewLayout.js:478) in RCTView (at View.js:45) in View (at StackViewLayout.js:477) in RCTView (at View.js:45) in View (at StackViewLayout.js:476) in RCTView (at View.js:45) in View (at createAnimatedComponent.js:151) in AnimatedComponent (at screens.native.js:71) in Screen (at StackViewCard.js:42) in Card (at createPointerEventsContainer.js:26) in Container (at StackViewLayout.js:507) in RCTView (at View.js:45) in View (at screens.native.js:101) in ScreenContainer (at StackViewLayout.js:401) in RCTView (at View.js:45) in View (at StackViewLayout.js:400) in StackViewLayout (at withOrientation.js:30) in withOrientation (at StackView.js:49) in RCTView (at View.js:45) in View (at Transitioner.js:141) in Transitioner (at StackView.js:19) in StackView (at createNavigator.js:57) in Navigator (at createKeyboardAwareNavigator.js:11) in KeyboardAwareNavigator (at createNavigationContainer.js:376) in NavigationContainer (at SceneView.js:9) in SceneView (at SwitchView.js:12) in SwitchView (at createNavigator.js:57) in Navigator (at createNavigationContainer.js:376) in NavigationContainer (at reduxify-navigator.js:61) in NavigatorReduxWrapper (at router.js:104) in RCTView (at View.js:45) in View (created by Portal.Host) in Portal.Host (created by Provider) in ThemeProvider (created by Provider) in LocaleProvider (created by Provider) in Provider (at router.js:101) in RCTView (at View.js:45) in View (created by MenuProvider) in RCTView (at View.js:45) in View (created by MenuProvider) in MenuProvider (at router.js:100) in Router (created by Connect(Router)) in Connect(Router) (at apps/index.js:23) in Provider (at dva.js:17) in Unknown (at renderApplication.js:35) in RCTView (at View.js:45) in View (at AppContainer.js:98) in ChildrenWrapper (at wrapRootComponent.js:9) in _class (at wrapRootComponent.js:8) in Root (at AppContainer.js:112) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:34) This error is located at: in NavigationContainer (at SceneView.js:9) in SceneView (at SwitchView.js:12) in SwitchView (at createNavigator.js:57) in Navigator (at createNavigationContainer.js:376) in NavigationContainer (at reduxify-navigator.js:61) in NavigatorReduxWrapper (at router.js:104) in RCTView (at View.js:45) in View (created by Portal.Host) in Portal.Host (created by Provider) in ThemeProvider (created by Provider) in LocaleProvider (created by Provider) in Provider (at router.js:101) in RCTView (at View.js:45) in View (created by MenuProvider) in RCTView (at View.js:45) in View (created by MenuProvider) in MenuProvider (at router.js:100) in Router (created by Connect(Router)) in Connect(Router) (at apps/index.js:23) in Provider (at dva.js:17) in Unknown (at renderApplication.js:35) in RCTView (at View.js:45) in View (at AppContainer.js:98) in ChildrenWrapper (at wrapRootComponent.js:9) in _class (at wrapRootComponent.js:8) in Root (at AppContainer.js:112) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:34) This error is located at: in NavigationContainer (at reduxify-navigator.js:61) in NavigatorReduxWrapper (at router.js:104) in RCTView (at View.js:45) in View (created by Portal.Host) in Portal.Host (created by Provider) in ThemeProvider (created by Provider) in LocaleProvider (created by Provider) in Provider (at router.js:101) in RCTView (at View.js:45) in View (created by MenuProvider) in RCTView (at View.js:45) in View (created by MenuProvider) in MenuProvider (at router.js:100) in Router (created by Connect(Router)) in Connect(Router) (at apps/index.js:23) in Provider (at dva.js:17) in Unknown (at renderApplication.js:35) in RCTView (at View.js:45) in View (at AppContainer.js:98) in ChildrenWrapper (at wrapRootComponent.js:9) in _class (at wrapRootComponent.js:8) in Root (at AppContainer.js:112) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:34)

inkCrazy
inkCrazy

Invariant Violation: Invariant Violation: Invariant Violation: requireNativeComponent: "RNCViewPager" was not found in the UIManager. This error is located at: in RNCViewPager (at ViewPagerAndroid.android.js:272) in ViewPagerAndroid (created by Context.Consumer) in RCTView (at View.js:45) in View (created by Context.Consumer) in WithTheme (created by Tabs) in Tabs (at approve/index.js:428) in RCTView (at View.js:45) in View (at approve/index.js:420) in approveQAList (created by Connect(approveQAList)) in Connect(approveQAList) (at SceneView.js:9) in SceneView (at StackViewLayout.js:478) in RCTView (at View.js:45) in View (at StackViewLayout.js:477) in RCTView (at View.js:45) in View (at StackViewLayout.js:476) in RCTView (at View.js:45) in View (at createAnimatedComponent.js:151) in AnimatedComponent (at screens.native.js:71) in Screen (at StackViewCard.js:42) in Card (at createPointerEventsContainer.js:26) in Container (at StackViewLayout.js:507) in RCTView (at View.js:45) in View (at screens.native.js:101) in ScreenContainer (at StackViewLayout.js:401) in RCTView (at View.js:45) in View (at StackViewLayout.js:400) in StackViewLayout (at withOrientation.js:30) in withOrientation (at StackView.js:49) in RCTView (at View.js:45) in View (at Transitioner.js:141) in Transitioner (at StackView.js:19) in StackView (at createNavigator.js:57) in Navigator (at createKeyboardAwareNavigator.js:11) in KeyboardAwareNavigator (at createNavigationContainer.js:376) in NavigationContainer (at SceneView.js:9) in SceneView (at SwitchView.js:12) in SwitchView (at createNavigator.js:57) in Navigator (at createNavigationContainer.js:376) in NavigationContainer (at reduxify-navigator.js:61) in NavigatorReduxWrapper (at router.js:104) in RCTView (at View.js:45) in View (created by Portal.Host) in Portal.Host (created by Provider) in ThemeProvider (created by Provider) in LocaleProvider (created by Provider) in Provider (at router.js:101) in RCTView (at View.js:45) in View (created by MenuProvider) in RCTView (at View.js:45) in View (created by MenuProvider) in MenuProvider (at router.js:100) in Router (created by Connect(Router)) in Connect(Router) (at apps/index.js:23) in Provider (at dva.js:17) in Unknown (at renderApplication.js:35) in RCTView (at View.js:45) in View (at AppContainer.js:98) in ChildrenWrapper (at wrapRootComponent.js:9) in _class (at wrapRootComponent.js:8) in Root (at AppContainer.js:112) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:34) This error is located at: in NavigationContainer (at SceneView.js:9) in SceneView (at SwitchView.js:12) in SwitchView (at createNavigator.js:57) in Navigator (at createNavigationContainer.js:376) in NavigationContainer (at reduxify-navigator.js:61) in NavigatorReduxWrapper (at router.js:104) in RCTView (at View.js:45) in View (created by Portal.Host) in Portal.Host (created by Provider) in ThemeProvider (created by Provider) in LocaleProvider (created by Provider) in Provider (at router.js:101) in RCTView (at View.js:45) in View (created by MenuProvider) in RCTView (at View.js:45) in View (created by MenuProvider) in MenuProvider (at router.js:100) in Router (created by Connect(Router)) in Connect(Router) (at apps/index.js:23) in Provider (at dva.js:17) in Unknown (at renderApplication.js:35) in RCTView (at View.js:45) in View (at AppContainer.js:98) in ChildrenWrapper (at wrapRootComponent.js:9) in _class (at wrapRootComponent.js:8) in Root (at AppContainer.js:112) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:34) This error is located at: in NavigationContainer (at reduxify-navigator.js:61) in NavigatorReduxWrapper (at router.js:104) in RCTView (at View.js:45) in View (created by Portal.Host) in Portal.Host (created by Provider) in ThemeProvider (created by Provider) in LocaleProvider (created by Provider) in Provider (at router.js:101) in RCTView (at View.js:45) in View (created by MenuProvider) in RCTView (at View.js:45) in View (created by MenuProvider) in MenuProvider (at router.js:100) in Router (created by Connect(Router)) in Connect(Router) (at apps/index.js:23) in Provider (at dva.js:17) in Unknown (at renderApplication.js:35) in RCTView (at View.js:45) in View (at AppContainer.js:98) in ChildrenWrapper (at wrapRootComponent.js:9) in _class (at wrapRootComponent.js:8) in Root (at AppContainer.js:112) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:34)

兄弟找到解决办法了吗

0.59你是怎么解决的

Dec
1
1 month ago
started
started time in 1 month ago
Nov
12
2 months ago
Activity icon
issue

inkCrazy issue comment react-native-modal/react-native-modal

inkCrazy
inkCrazy

Touchable/onPress components not woking inside a Modal

Issue with Modal

I have implemented Touchable inside modal but onPress is not working in iOS, it is working on android. Any help will be appreciated.

<Modal isVisible={true}>
      <TouchableOpacity onPress={hide} style={styles.backContainer}>
        <Icon
          family="entypo"
          name="chevron-small-left"
          size={22}
          color={colors.textColor}
        />
        <Text
          size={10}
          lineHeight={16}
          weight="semi-bold"
          color={colors.textColor}
          style={styles.back}>
          Back
        </Text>
      </TouchableOpacity>
    </Modal>
        
inkCrazy
inkCrazy

<Text activeOpacity={0.6} style={{color: '#5694FF', lineHeight: 26}} onPress={() => { console.log('去看看用户协议和隐私政策'); this.props.navigation.navigate( 'GeneralWebViewBrowserForLogin', { url: Config.USER_PROTOCOL_ADDRESS, }, ); }}> 《用户协议和隐私政策》

sometimes ”onpress“ is invalid。sometimes onPress is useful, transparency is no change。

Nov
8
2 months ago
Activity icon
issue

inkCrazy issue comment mqttjs/MQTT.js

inkCrazy
inkCrazy

React Native Support - How to configure?

I have been reading over some of the past issues about getting this library to work with React Native. I would like to use this library because it looks like it is the most supported one out there for javascript. I have not found a guide that can be followed to get this project working on React Native. I have read several posts from this repo linked below that talk about some of the difficulties getting it to work. It does appear that people have gotten this project to work with React Native but I am not sure what their project setup looks like. What I am asking is if it is possible to get this repo working with React Native can there be a README file created that walks through the setup process and possibly common issues that arise? I have listed a few of the issues that mention the setup process below but do not know if any of these are relevant.

inkCrazy
inkCrazy

我最后使用了paho-mqtt.js,地址:https://www.eclipse.org/paho/files/jsdoc/paho-mqtt.js.html,使用websocket协议,运行完好。