Skip to content

Commit

Permalink
Convert FakeRCTEventEmitter to Kotlin (#37733)
Browse files Browse the repository at this point in the history
Summary:
Converts FakeRCTEventEmitter from Java to Kotlin, as per issue #37708

## Changelog:

[Internal] [Changed] - Convert FakeRCTEventEmitter to Kotlin

Pull Request resolved: #37733

Test Plan:
Tests pass: `./gradlew :packages:react-native:ReactAndroid:test`
Formatted with [KtFmt](https://facebook.github.io/ktfmt/)

Reviewed By: rshest

Differential Revision: D46513891

Pulled By: cortinico

fbshipit-source-id: 4ad70242d88cc89f8f8033fd437d43df2283c4a1
  • Loading branch information
dcangulo authored and facebook-github-bot committed Jun 7, 2023
1 parent ecfbabf commit e449706
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.bridge.interop

import com.facebook.react.bridge.WritableArray
import com.facebook.react.bridge.WritableMap
import com.facebook.react.uimanager.events.RCTEventEmitter

class FakeRCTEventEmitter : RCTEventEmitter {

override fun receiveEvent(targetReactTag: Int, eventName: String, event: WritableMap?) {}

override fun receiveTouches(
eventName: String,
touches: WritableArray,
changedIndices: WritableArray
) {}
}

0 comments on commit e449706

Please sign in to comment.