Skip to content

Commit a1a73b6

Browse files
committed
chore: remove old hybrid objects
1 parent 05aa239 commit a1a73b6

File tree

4 files changed

+2
-32
lines changed

4 files changed

+2
-32
lines changed

example/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { StyleSheet, View } from "react-native";
22

3-
import { multiply, specificity, StyleRegistry } from "react-native-css-nitro";
3+
import { specificity, StyleRegistry } from "react-native-css-nitro";
44
import { Text } from "react-native-css-nitro/components/Text";
55

66
StyleRegistry.addStyleSheet({
@@ -42,7 +42,7 @@ export default function App() {
4242
console.log("Pressed!");
4343
}}
4444
>
45-
Multiply: {multiply(3, 7)}
45+
Hello, World!
4646
</Text>
4747
</View>
4848
);

ios/CssNitro.swift

Lines changed: 0 additions & 5 deletions
This file was deleted.

nitro.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88
"androidCxxLibName": "cssnitro"
99
},
1010
"autolinking": {
11-
"CssNitro": {
12-
"swift": "CssNitro",
13-
"kotlin": "CssNitro"
14-
},
15-
"Math": {
16-
"cpp": "HybridMath"
17-
},
1811
"HybridStyleRegistry": {
1912
"cpp": "HybridStyleRegistry"
2013
}

src/index.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
import { NitroModules } from "react-native-nitro-modules";
2-
3-
import type { CssNitro } from "./CssNitro.nitro";
4-
import type { Math } from "./specs/Math.nitro";
5-
61
export { StyleRegistry } from "./specs/StyleRegistry";
72
export { useStyled } from "./native/useStyled";
83
export * from "./native/specificity";
9-
10-
const CssNitroHybridObject =
11-
NitroModules.createHybridObject<CssNitro>("CssNitro");
12-
13-
const MathHybridObject = NitroModules.createHybridObject<Math>("Math");
14-
15-
export function multiply(a: number, b: number): number {
16-
return CssNitroHybridObject.multiply(a, b);
17-
}
18-
19-
export function add(a: number, b: number): number {
20-
return MathHybridObject.add(a, b);
21-
}

0 commit comments

Comments
 (0)