Skip to content

Commit

Permalink
Migrate BridgelessReactStateTracker to Kotlin (facebook#43792)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#43792

Changelog: [Internal]

Differential Revision: D55628784
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Apr 2, 2024
1 parent 1252f63 commit 013e0b3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 32 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* 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.runtime

import com.facebook.common.logging.FLog

internal class BridgelessReactStateTracker(private val shouldTrackStates: Boolean) {

private companion object {
private const val TAG = "BridgelessReact"
}

private val states = mutableListOf<String>()

protected fun enterState(state: String) {
FLog.w(TAG, state)
if (shouldTrackStates) {
states.add(state)
}
}
}

0 comments on commit 013e0b3

Please sign in to comment.