diff --git a/docs/turbo-native-modules.md b/docs/turbo-native-modules.md index 8493c1febca..30f1942f5dc 100644 --- a/docs/turbo-native-modules.md +++ b/docs/turbo-native-modules.md @@ -45,6 +45,10 @@ To create a specs file: You can see all of the types you can use in your specification and the native types that are generated in the [Appendix](/appendix.md) documentation. ::: +:::info +If you want to change the name of your module and the related specs file, make sure to always use 'Native' as prefix (e.g. `NativeStorage` or `NativeUsersDefault`). +::: + Here is an implementation of the `localStorage` specification: diff --git a/website/versioned_docs/version-0.77/turbo-native-modules.md b/website/versioned_docs/version-0.77/turbo-native-modules.md index 8493c1febca..30f1942f5dc 100644 --- a/website/versioned_docs/version-0.77/turbo-native-modules.md +++ b/website/versioned_docs/version-0.77/turbo-native-modules.md @@ -45,6 +45,10 @@ To create a specs file: You can see all of the types you can use in your specification and the native types that are generated in the [Appendix](/appendix.md) documentation. ::: +:::info +If you want to change the name of your module and the related specs file, make sure to always use 'Native' as prefix (e.g. `NativeStorage` or `NativeUsersDefault`). +::: + Here is an implementation of the `localStorage` specification: