cobrowse-sdk-react-native
Advanced tools
Comparing version 2.14.0 to 2.15.0
@@ -75,2 +75,3 @@ import { Platform, Alert } from 'react-native' | ||
// eslint-disable-next-line accessor-pairs | ||
static set api (api) { | ||
@@ -80,2 +81,3 @@ CobrowseIONative.api(api) | ||
// eslint-disable-next-line accessor-pairs | ||
static set license (license) { | ||
@@ -85,2 +87,3 @@ CobrowseIONative.license(license) | ||
// eslint-disable-next-line accessor-pairs | ||
static set customData (customData) { | ||
@@ -90,2 +93,3 @@ CobrowseIONative.customData(customData) | ||
// eslint-disable-next-line accessor-pairs | ||
static set deviceToken (token) { | ||
@@ -135,4 +139,4 @@ CobrowseIONative.deviceToken(token) | ||
CobrowseIO.handleRemoteControlRequest(session) | ||
} | ||
} | ||
if (session.isActive() && session.full_device_state === 'requested') { | ||
@@ -139,0 +143,0 @@ if (CobrowseIO.handleFullDeviceRequest) { |
@@ -103,3 +103,3 @@ import React, { Component } from 'react' | ||
<View> | ||
<Text style={[styles.text]}>You{"'"}re sharing screens from this app with a support agent.</Text> | ||
<Text style={[styles.text]}>You're sharing screens from this app with a support agent.</Text> | ||
<TouchableOpacity onPress={() => this.endSession()}> | ||
@@ -106,0 +106,0 @@ <Text style={[styles.text, styles.button]}>End Session</Text> |
{ | ||
"name": "cobrowse-sdk-react-native", | ||
"version": "2.14.0", | ||
"version": "2.15.0", | ||
"description": "Cobrowse SDK for React Native", | ||
@@ -8,5 +8,6 @@ "main": "js/index.js", | ||
"scripts": { | ||
"lint": "ts-standard ts/*.d.ts", | ||
"lint:fix": "ts-standard ts/*.d.ts --fix", | ||
"start:dev": "nodemon --exec ./scripts/copy.sh" | ||
"lint": "ts-standard", | ||
"lint:fix": "npm run lint -- --fix", | ||
"start:dev": "nodemon --exec ./scripts/copy.sh", | ||
"test:types": "tsc -p tsconfig.eslint.json --noEmit" | ||
}, | ||
@@ -42,5 +43,11 @@ "author": { | ||
"nodemon": "^2.0.20", | ||
"ts-standard": "^12.0.1", | ||
"ts-standard": "^12.0.2", | ||
"typescript": "^4.8.4" | ||
}, | ||
"ts-standard": { | ||
"project": "tsconfig.eslint.json", | ||
"env": [ | ||
"jest" | ||
] | ||
} | ||
} |
@@ -1,3 +0,3 @@ | ||
import type { Component } from 'react' | ||
import type { View, Text } from 'react-native' | ||
import type { Component, ReactElement } from 'react' | ||
import type { ViewProps, TextProps } from 'react-native' | ||
@@ -11,11 +11,11 @@ export default class CobrowseView extends Component { | ||
renderError (): Text | ||
renderError (): ReactElement<TextProps> | ||
renderCode (): View | ||
renderCode (): ReactElement<ViewProps> | ||
renderManageSession (): View | ||
renderManageSession (): ReactElement<ViewProps> | ||
renderContent (): Text | View | ||
renderContent (): ReactElement<TextProps | ViewProps> | ||
render (): View | ||
render (): ReactElement<ViewProps> | ||
} |
@@ -8,2 +8,3 @@ import React, { ReactElement, ForwardRefRenderFunction } from 'react' | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
type ForwardedRefType<T, P> = typeof React.forwardRef | ||
@@ -10,0 +11,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59
590
99025