Skip to content

Commit

Permalink
🛠 Refactor: Remove RequestFactory
Browse files Browse the repository at this point in the history
TODO:2023-03-04-05-25-44 - Library Cleanup
  • Loading branch information
dominicstop committed Mar 3, 2023
1 parent 0677438 commit 214704f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 56 deletions.
3 changes: 0 additions & 3 deletions src/ModalView.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
import * as Helpers from './functions/helpers';

import { EventEmitter } from './functions/EventEmitter';
import { RequestFactory } from './functions/RequestFactory';
import { ModalEventKeys } from './constants/Enums';
import { ModalContext } from './context/ModalContext';

Expand Down Expand Up @@ -98,7 +97,6 @@ export class ModalView extends React.PureComponent {
constructor(props) {
super(props);

RequestFactory.initialize(this);
this.emitter = new EventEmitter();
this._childRef = null;

Expand Down Expand Up @@ -215,7 +213,6 @@ export class ModalView extends React.PureComponent {

//#region - Native Event Handlers
_handleOnRequestResult = ({ nativeEvent }) => {
RequestFactory.resolveRequestFromObj(this, nativeEvent);
this.props.onRequestResult?.({ nativeEvent });
};

Expand Down
53 changes: 0 additions & 53 deletions src/functions/RequestFactory.js

This file was deleted.

0 comments on commit 214704f

Please sign in to comment.