
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
react-native-expo-game-kit
Advanced tools
A React Native library for iOS GameKit (Game Center) & Android Google Play Games Services (GPGS) integration.
A React Native (Expo or Bare Workflow) library that integrates:
This allows you to authenticate players, show leaderboards, submit scores, show/unlock achievements, and optionally support multiplayer—all using a single JavaScript API.
Using npm:
npm install react-native-cross-platform-game-services
Or using yarn:
yarn add react-native-cross-platform-game-services
Add the plugin to your app.json or app.config.js:
{
"expo": {
// ...
"plugins": ["react-native-cross-platform-game-services"]
}
}
Then rebuild with EAS or prebuild:
npx expo prebuild
npx expo run:ios
or
eas build -p ios
eas build -p android
This library includes a config plugin (app.plugin.js) that:
If you’re in the Expo Managed Workflow, be sure to run prebuild or an EAS build so these changes are applied to the native iOS/Android projects.
In your React Native or Expo app:
import React, { useEffect } from "react";
import { View, Button, Text } from "react-native";
import { GameServices } from "react-native-cross-platform-game-services";
export default function App() {
useEffect(() => {
// Cross-platform sign-in on mount
// iOS -> Game Center
// Android -> Google Play Games
GameServices.signInOrAuthenticate()
.then((res) => {
console.log("Sign-in success:", res);
})
.catch((err) => {
console.error("Sign-in error:", err);
});
}, []);
const handleShowLeaderboard = () => {
GameServices.showLeaderboard("YOUR_LEADERBOARD_ID").catch((err) =>
console.error("Leaderboard error:", err)
);
};
const handleSubmitScore = () => {
GameServices.submitScore("YOUR_LEADERBOARD_ID", 12345)
.then(() => console.log("Score submitted"))
.catch((err) => console.error("Submit score error:", err));
};
const handleShowAchievements = () => {
GameServices.showAchievements().catch((err) =>
console.error("Show achievements error:", err)
);
};
const handleUnlockAchievement = () => {
// iOS -> reportAchievement(achievementID, percent)
// Android -> unlockAchievement(achievementID)
GameServices.unlockAchievement("YOUR_ACHIEVEMENT_ID").catch((err) =>
console.error("Achievement error:", err)
);
};
return (
<View style={{ marginTop: 50, padding: 20 }}>
<Text style={{ fontSize: 18, marginBottom: 10 }}>
Cross-Platform Game Services Demo
</Text>
<Button title="Show Leaderboard" onPress={handleShowLeaderboard} />
<Button title="Submit Score" onPress={handleSubmitScore} />
<Button title="Show Achievements" onPress={handleShowAchievements} />
<Button title="Unlock Achievement" onPress={handleUnlockAchievement} />
</View>
);
}
The included iOS/Android code can be expanded with event emitters for full real-time or turn-based support.
Contributions are welcome! Please:
If you encounter any issues, please open a GitHub Issue with:
MIT License
Copyright (c) 2024 Joseph May
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
A React Native library for iOS GameKit (Game Center) & Android Google Play Games Services (GPGS) integration.
The npm package react-native-expo-game-kit receives a total of 34 weekly downloads. As such, react-native-expo-game-kit popularity was classified as not popular.
We found that react-native-expo-game-kit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain