Skip to content

Commit

Permalink
getEnforcing → get, publish v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbaroni committed Nov 13, 2024
1 parent 09782f6 commit 21d1040
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package/example-fabric/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ PODS:
- ReactCommon/turbomodule/core
- Yoga
- SocketRocket (0.7.1)
- TurboHaptics (1.0.0):
- TurboHaptics (1.0.2):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -1916,7 +1916,7 @@ SPEC CHECKSUMS:
RNGestureHandler: fc5ce5bf284640d3af6431c3a5c3bc121e98d045
RNReanimated: 77242c6d67416988a2fd9f5cf574bb3e60016362
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
TurboHaptics: 133e613c59c913b04fd42670a676679a38b4272d
TurboHaptics: d9ab3c65e51bea79c2523bb9b4bd19fc8dc38c06
Yoga: 157bed1c62656587df4639d4dc29714898f8fb10

PODFILE CHECKSUM: 71a689932e49f453bd6454dd189b45915dda66a0
Expand Down
4 changes: 2 additions & 2 deletions package/example-paper/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ PODS:
- React-Core
- ReactCommon/turbomodule/core
- SocketRocket (0.6.1)
- TurboHaptics (1.0.0):
- TurboHaptics (1.0.2):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
Expand Down Expand Up @@ -1307,7 +1307,7 @@ SPEC CHECKSUMS:
RNGestureHandler: 93938f47763bf404d697f7c5d63c280ae4d732e4
RNReanimated: 51ba6c9ecdde77caf364c7e5ae59a089c7dd98b3
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
TurboHaptics: e6cc1f5af12d224eb4994b49b09e49f10f66808b
TurboHaptics: c17e94e33a22627c7e41a4c6d97650fe5ee6acba
Yoga: 490c2ee2b0808472ab0877103fbdc0f557b797e1

PODFILE CHECKSUM: 806cb2013b351cc5b4c46a57315e2a6f276abbc6
Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-turbo-haptics",
"version": "1.0.0",
"version": "1.0.2",
"description": "Fast, worklet-compatible haptic feedback for React Native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
2 changes: 1 addition & 1 deletion package/src/NativeTurboHaptics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export interface Spec extends TurboModule {
install(): boolean;
}

export default TurboModuleRegistry.getEnforcing<Spec>('TurboHaptics');
export default TurboModuleRegistry.get<Spec>('TurboHaptics');
5 changes: 4 additions & 1 deletion package/src/initModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export const initTurboHaptics = () => {
success = module.install();
}
// [RN 0.74+] Check for JSI environment and install bindings
else if (global.__turboModuleProxy != null) {
else if (
global.__turboModuleProxy != null &&
TurboHapticsModule !== null
) {
try {
success = TurboHapticsModule.install();
} catch (e) {
Expand Down

0 comments on commit 21d1040

Please sign in to comment.