Compare commits

..

2 Commits

Author SHA1 Message Date
zplata
da11387558 chore: release 3.0.3 2022-05-17 15:23:15 +00:00
Zach Plata
3902948a2e Feat: Bump wasm and add examples to support touch feature 2022-05-17 10:20:56 -05:00
5 changed files with 22 additions and 12 deletions

View File

@@ -4,9 +4,9 @@ All notable changes to this project will be documented in this file. Dates are d
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
#### [v3.0.2](https://github.com/rive-app/rive-react/compare/v3.0.1...v3.0.2)
#### [v3.0.3](https://github.com/rive-app/rive-react/compare/v3.0.1...v3.0.3)
- Maint: Bump wasm dependencies [`f0e7092`](https://github.com/rive-app/rive-react/commit/f0e70924ec9849f45ecddda801ad63e1d87b1bdb)
- Feat: Bump wasm and add examples to support touch feature [`3902948`](https://github.com/rive-app/rive-react/commit/3902948a2ef8af6955ef12124207edee29eb0be8)
#### [v3.0.1](https://github.com/rive-app/rive-react/compare/v3.0.0...v3.0.1)

View File

@@ -6,10 +6,10 @@
"@testing-library/jest-dom": "^5.13.0",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"react": "^17.0.2",
"react": "file:../../node_modules/react",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"rive-react": "latest",
"rive-react": "file:../..",
"web-vitals": "^1.1.2"
},
"scripts": {

View File

Binary file not shown.

View File

@@ -6,13 +6,23 @@ function App() {
autoplay: true,
};
const { RiveComponent } = useRive(params);
const { RiveComponent: RiveComponentBasic } = useRive(params);
const { RiveComponent: RiveComponentTouch } = useRive({
src: 'magic-ball.riv',
autoplay: true,
stateMachines: "Main State Machine",
});
return (
// The animation will fit to the parent element.
<div style={{ height: '500px', width: '500px' }}>
<RiveComponent />
</div>
<>
<div style={{ height: '500px', width: '500px' }}>
<RiveComponentBasic />
</div>
<div style={{ height: '300px', width: '300px' }}>
<RiveComponentTouch />
</div>
</>
);
}

View File

@@ -1,6 +1,6 @@
{
"name": "rive-react",
"version": "3.0.2",
"version": "3.0.3",
"description": "React wrapper around the rive-js library",
"main": "dist/index.js",
"typings": "dist/types/index.d.ts",
@@ -27,8 +27,8 @@
},
"homepage": "https://github.com/rive-app/rive-react#readme",
"dependencies": {
"@rive-app/canvas": "1.0.59",
"@rive-app/webgl": "1.0.56"
"@rive-app/canvas": "1.0.60",
"@rive-app/webgl": "1.0.57"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"