react-native-navigation-mode 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -73,29 +73,17 @@ npm install react-native-navigation-mode
73
73
  npx expo install react-native-navigation-mode
74
74
  ```
75
75
 
76
- ##### Expo Configuration
77
-
78
- Add the plugin to your `app.json` or `app.config.ts`:
79
-
80
- ```json
81
- {
82
- "expo": {
83
- "plugins": [
84
- "react-native-navigation-mode"
85
- ]
86
- }
87
- }
88
- ```
76
+ ##### Development Builds
89
77
 
90
- For bare workflow or custom native code, you'll need to prebuild:
78
+ Since this library contains native code, it requires a [development build](https://docs.expo.dev/develop/development-builds/introduction/). It cannot be used with Expo Go.
91
79
 
92
80
  ```sh
93
- npx expo prebuild
94
- ```
81
+ # Using EAS Build (recommended)
82
+ eas build --profile development --platform android
95
83
 
96
- ##### Development Builds
97
-
98
- Since this library contains native code, it requires a custom development build. You cannot use it with standard Expo Go.
84
+ # Or locally
85
+ npx expo run:android # Should auto-run prebuild if needed
86
+ ```
99
87
 
100
88
  #### Requirements
101
89
 
@@ -396,12 +384,6 @@ The library uses multiple detection methods for maximum accuracy:
396
384
  - This is normal on devices without navigation bars (some tablets)
397
385
  - On older Android versions, fallback detection may not work on all devices
398
386
 
399
- **Expo: "Package does not contain a valid config plugin"**
400
-
401
- - Ensure you've installed the latest version of the library
402
- - Try clearing your cache: `npx expo start --clear`
403
- - Make sure the plugin is added to your `app.json`
404
-
405
387
  ## 🤝 Contributing
406
388
 
407
389
  See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
package/app.plugin.js CHANGED
@@ -1,15 +1,13 @@
1
- const { createRunOncePlugin } = require('@expo/config-plugins');
2
-
3
1
  /**
4
2
  * Expo Config Plugin for react-native-navigation-mode
5
- * This plugin ensures the native module is properly linked in managed workflow
3
+ *
4
+ * Note: This plugin is optional. The library works without adding it to your
5
+ * plugins array because no native configuration changes are required.
6
6
  */
7
+
8
+ /** @type {import('@expo/config-plugins').ConfigPlugin} */
7
9
  const withNavigationMode = (config) => {
8
- // No additional configuration needed for this module
9
- // The module will be auto-linked through the Expo modules system
10
10
  return config;
11
11
  };
12
12
 
13
- const pkg = require('./package.json');
14
-
15
- module.exports = createRunOncePlugin(withNavigationMode, pkg.name, pkg.version);
13
+ module.exports = withNavigationMode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-navigation-mode",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Detect Android navigation mode (3-button, 2-button, or gesture)",
5
5
  "main": "./lib/module/index.js",
6
6
  "react-native": "./lib/module/index.js",
@@ -16,7 +16,6 @@
16
16
  "react-native.config.js",
17
17
  "expo-module.config.json",
18
18
  "app.plugin.js",
19
- "plugin/build",
20
19
  "!ios/build",
21
20
  "!android/build",
22
21
  "!android/gradle",
@@ -1,4 +0,0 @@
1
- import { type ConfigPlugin } from '@expo/config-plugins';
2
- declare const withNavigationMode: ConfigPlugin;
3
- export default withNavigationMode;
4
- //# sourceMappingURL=withNavigationMode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withNavigationMode.d.ts","sourceRoot":"","sources":["../../../../plugin/src/withNavigationMode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,QAAA,MAAM,kBAAkB,EAAE,YAEzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}