react-native-earl-gamepad 0.7.3 → 0.7.4
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 +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -155,12 +155,14 @@ export function DebugScreen() {
|
|
|
155
155
|
|
|
156
156
|
https://github.com/user-attachments/assets/6b073b65-9585-4168-8c2c-7ef06a7cf03a
|
|
157
157
|
|
|
158
|
-
|
|
159
158
|
https://github.com/user-attachments/assets/b5a9d422-b143-4887-9a64-fb41edee731f
|
|
160
159
|
|
|
161
160
|
## Example
|
|
161
|
+
|
|
162
162
|
### Basic Game Showcasing `react-native-earl-gamepad`
|
|
163
|
+
|
|
163
164
|
[Github Repository Basic Game](https://github.com/Swif7ify/react-native-earl-gamepad-example)
|
|
165
|
+
|
|
164
166
|
```sh
|
|
165
167
|
# external repo
|
|
166
168
|
git clone https://github.com/Swif7ify/react-native-earl-gamepad-example
|
|
@@ -252,6 +254,7 @@ Build outputs to `dist/` with type declarations.
|
|
|
252
254
|
|
|
253
255
|
- **[Invariant Violation: Tried to register two views with the same name RNCWebView]**: Check your `package.json` for multiple instances of `react-native-webview` and uninstall any duplicates.
|
|
254
256
|
When you install `react-native-earl-gamepad`, `react-native-webview` is already included, so you should not install it separately. or you can check it by running `npm ls react-native-webview`.
|
|
257
|
+
- **Gamepad not focusing on the app**: Ensure that your styles do not hide the `GamepadBridge` (e.g., `display: 'none'`), as this may prevent the WebView from receiving gamepad input. You can use `opacity: 0` or `width: 0, height: 0` instead.
|
|
255
258
|
|
|
256
259
|
## License
|
|
257
260
|
|