Giter VIP home page Giter VIP logo

react-native-zendesk's Introduction

react-native-zendesk

React Native bridge to Zendesk Support SDK v2 on iOS and Android.

Installation

  1. Add the package via yarn or npm
yarn add react-native-zendesk
npm install --save react-native-zendesk
  1. Link the modules to your native projects (VERSION < RN 0.60)
react-native link react-native-zendesk

Getting Started

API is very small and can be seen here

react-native-zendesk's People

Contributors

dcvz avatar huynguyen3tiki avatar jdmunro avatar p3drosola avatar raldred avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-zendesk's Issues

Failed build: No such module 'Zendesk'

I'm using v2.0.0 and builds are failing with the error:

Compiling RNZendesk.swift

❌ /node_modules/react-native-zendesk/ios/RNZendesk/RNZendesk.swift:11:8: no such module 'ZendeskSDK'

Thanks for your time and effort building this package

Adding package.lock to repo

Can you please add package.lock to this repo, so that we can lock our npm to a certain commit?The thing is, there is some code already in master branch(Android RN 0.60 fix, for instance) that is not in latest release. But I need that code ASAP, to overcome some issues in the ongoing project. I would really appreciate your help with that.

can't install ZendeskSDK

I have added your package:

$ yarn add react-native-zendesk
$ react-native link react-native-zendesk

then I tried to install pod file, but it was failed.

$ pod install
Analyzing dependencies
Fetching podspec for `RNDeviceInfo` from `../node_modules/react-native-device-info`
Fetching podspec for `RNGestureHandler` from `../node_modules/react-native-gesture-handler`
Fetching podspec for `RNReanimated` from `../node_modules/react-native-reanimated`
Fetching podspec for `RNScreens` from `../node_modules/react-native-screens`
Fetching podspec for `RNShare` from `../node_modules/react-native-share`
Fetching podspec for `React` from `../node_modules/react-native`
Fetching podspec for `react-native-fast-image` from `../node_modules/react-native-fast-image`
Fetching podspec for `react-native-zendesk` from `../node_modules/react-native-zendesk`
Fetching podspec for `yoga` from `../node_modules/react-native/ReactCommon/yoga`
[!] CocoaPods could not find compatible versions for pod "react-native-zendesk":
  In Podfile:
    react-native-zendesk (from `../node_modules/react-native-zendesk`)

Specs satisfying the `react-native-zendesk (from `../node_modules/react-native-zendesk`)` dependency were found, but they required a higher minimum deployment target.

[!] `<PBXGroup name=`Recovered References` UUID=`B801125E1F748AEB000E8863`>` attempted to initialize an object with an unknown UUID. `2004FA5771874F288F6E0638` for attribute: `children`. This can be the result of a merge and  the unknown UUID is being discarded.

[!] Automatically assigning platform `ios` with version `9.2` on target `Gamba` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Do you have any ideas?

Podfile support for installation

Thank you for creating react-native-zendesk! I'd love to have installation via .podspec, as it's working more stable for our projects.

Is the chat available also?

Hi, sorry but I really don't understand how the package has to work.
I installed it, no errors, I am using the method identifyJWT(token), after that if I wanna see the chat how can I achieve this?

Thank you in advance

In ios RNZendesk undefined

I install react-native-zendesk like in readme wrote and try RNZendesk.initialize but RNZendesk is undefined. I found

var RNZendesk = react_native_1.NativeModules.RNZendesk;
// MARK: - Initialization
function initialize(config) {
    RNZendesk.initialize(config);
}

return RNZendesk undefined. What i made wrong ?

"react-native": "0.61.5",
"react-native-zendesk": "^2.1.0"
xcode Version 11.2.1 (11B500)

Set name and email

Can you add this functions to RNZendeskBridge.java? (Tested)

    @ReactMethod
    public void identifyAnonymous() {
        Identity identity = new AnonymousIdentity();
        Zendesk.INSTANCE.setIdentity(identity);
    }

    @ReactMethod
    public void identifyAnonymousWithName(String name) {
        Identity identity = new AnonymousIdentity.Builder()
            .withNameIdentifier(name).build();
            
        Zendesk.INSTANCE.setIdentity(identity);
    }

    @ReactMethod
    public void identifyAnonymousWithEmail(String email) {
        Identity identity = new AnonymousIdentity.Builder()
            .withEmailIdentifier(email).build();

        Zendesk.INSTANCE.setIdentity(identity);
    }

    @ReactMethod
    public void identifyAnonymousWithNameAndEmail(String name, String email) {
        Identity identity = new AnonymousIdentity.Builder()
        .withNameIdentifier(name)
        .withEmailIdentifier(email)
        .build();

        Zendesk.INSTANCE.setIdentity(identity);
    }

Can't compile

Hi all,

I'm trying to compile an app with the RN Zendesk library but I get around 45 errors(most of them mentioning Swift) when building the application.
Any idea on what can be possibly going wrong?

Thanks

Attachment gallery button click detection is off

Hi,

I am encountering problem on attachment > gallery button has an offset click detection. Users have to click at the corner right to open gallery from this button.

Is there any solution to fix this?

0.60 Android build error

If I run "react-native run-android" after "yarn add react-native-zendesk"

  • What went wrong:
    Could not determine the dependencies of task ':app:preDebugBuild'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not find com.zendesk:support:2.0.0.

How configurate settings?

iOS build error Undefined symbol

RN 0.57

Undefined symbol: ZendeskSDK.RequestUiConfiguration.__allocating_init() -> ZendeskSDK.RequestUiConfiguration
Error

Issue started to occur after upgrading to XCode 10.3

RNZendesk is null

Hi, I'm using RN 0.60.5.
And installed using npm install --save react-native-zendesk, but when I call RNZendesk I get null, example:

const { RNZendesk } = NativeModules;

  componentWillMount(){
    const config = {
      appId: 'abc123',
      zendeskUrl: 'https://foo.zendesk.com',
      clientId: 'mobile_sdk_client_123456'
    };

    console.warn(RNZendesk)
  }

PS: I only tried on iOS.

Xcode build failed

Stripping frameworks
Stripped ./ZendeskCoreSDK.framework/ZendeskCoreSDK of architectures: armv7 arm64
Code Signing ./ZendeskCoreSDK.framework/ZendeskCoreSDK with Identity 
/usr/bin/codesign --force --sign  --preserve-metadata=identifier,entitlements ./ZendeskCoreSDK.framework/ZendeskCoreSDK
--preserve-metadata=identifier,entitlements: no identity found
Stripped ./ZendeskSDK.framework/ZendeskSDK of architectures: armv7 arm64
Code Signing ./ZendeskSDK.framework/ZendeskSDK with Identity 
/usr/bin/codesign --force --sign  --preserve-metadata=identifier,entitlements ./ZendeskSDK.framework/ZendeskSDK
--preserve-metadata=identifier,entitlements: no identity found
Stripped ./ZendeskProviderSDK.framework/ZendeskProviderSDK of architectures: armv7 arm64
Code Signing ./ZendeskProviderSDK.framework/ZendeskProviderSDK with Identity 
/usr/bin/codesign --force --sign  --preserve-metadata=identifier,entitlements ./ZendeskProviderSDK.framework/ZendeskProviderSDK
--preserve-metadata=identifier,entitlements: no identity found

I have added zendesk sdk according to official documentation but my build is failing
RN 0.55.4

Any help would be greatly appreciated

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.