react-achievements 1.0.5 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +13 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -76,6 +76,19 @@ const achievementConfig = {
76
76
  export default achievementConfig;
77
77
  ```
78
78
 
79
+ ### Update the location of the badges button
80
+ You can specify the position of the badges button by passing
81
+ badgesButtonPosition to the AchievementProvider:
82
+ ```javascript
83
+ <AchievementProvider config={achievementConfig} badgesButtonPosition="bottom-right">
84
+ ```
85
+
86
+ The possible values for badgesButtonPosition are
87
+ - `'top-left'`
88
+ - `'top-right'`
89
+ - `'bottom-left'`
90
+ - `'bottom-right'`
91
+
79
92
  ### Use the useAchievement hook
80
93
  In your components, use the useAchievement hook to update metrics and trigger achievement checks:
81
94
  ```javascript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-achievements",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "This package allows users to transpose a React achievements engine over their React apps",
5
5
  "keywords": [
6
6
  "react",