mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add enum example to Android/iOS rn-tester TurboModule
Summary: Add enum example to Android/iOS rn-tester TurboModule Changelog: [General][Added] - Add enum example to Android/iOS rn-tester TurboModule Reviewed By: javache Differential Revision: D40619020 fbshipit-source-id: a113c5c78bcff3275e80d11bce8d0e6421b0b97d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fd91748146
commit
02e4fcd825
@@ -48,6 +48,14 @@ public class SampleTurboModule extends NativeSampleTurboModuleSpec {
|
||||
return arg;
|
||||
}
|
||||
|
||||
@DoNotStrip
|
||||
@SuppressWarnings("unused")
|
||||
@Override
|
||||
public double getEnum(double arg) {
|
||||
log("getEnum", arg, arg);
|
||||
return arg;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Map<String, Object> getTypedExportedConstants() {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user