diff --git a/packages/create-react-native-library/templates/nitro-module/ios/{%- project.name %}.swift b/packages/create-react-native-library/templates/nitro-module/ios/{%- project.name %}.swift index 4854d8142..1f09ee1a4 100644 --- a/packages/create-react-native-library/templates/nitro-module/ios/{%- project.name %}.swift +++ b/packages/create-react-native-library/templates/nitro-module/ios/{%- project.name %}.swift @@ -1,6 +1,5 @@ class <%- project.name -%>: Hybrid<%- project.name -%>Spec { - public var hybridContext = margelo.nitro.HybridContext() - public var memorySize: Int { + public override var memorySize: Int { getSizeOf(self) }