Skip to content

Commit

Permalink
feat(library setup): fixing index.tsx to remove proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
ssathy2 committed Jul 3, 2024
1 parent 1d70965 commit 1cd5c6b
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import {
type ViewStyle,
} from 'react-native';

import PropTypes from 'prop-types';

const LINKING_ERROR =
`The package 'react-native-connectsdk' doesn't seem to be linked. Make sure: \n\n` +
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
Expand All @@ -15,18 +13,18 @@ const LINKING_ERROR =

// TODO: Add documentation
type ConnectsdkProps = {
connectionId: PropTypes.string;
suggestedUserEmail: PropTypes.string;
redirectURL: PropTypes.string;
skipConnectionConfiguration: PropTypes.bool;
oauthCode: PropTypes.string;
inviteCode: PropTypes.string;
userToken: PropTypes.string;
connectionId: string;
suggestedUserEmail: string;
redirectURL: string;
skipConnectionConfiguration: boolean;
oauthCode: string;
inviteCode: string;
userToken: string;

onActivationSuccess: PropTypes.func;
onActivationFailure: PropTypes.func;
onDeactivationSuccess: PropTypes.func;
onDeactivationFailure: PropTypes.func;
onActivationSuccess: Function;
onActivationFailure: Function;
onDeactivationSuccess: Function;
onDeactivationFailure: Function;

style: ViewStyle;
};
Expand Down

0 comments on commit 1cd5c6b

Please sign in to comment.