Missing import RevealGlobalStyles
vasco3 opened this issue · 1 comments
vasco3 commented
I'm trying to import RevealGlobalStyles but it seems it doesn't exist in react-genie
turkyden commented
Look at this https://codesandbox.io/s/react-genie-example-8xfsc?file=/index.tsx:0-387
package.json
"react-genie": "^0.2.2",
+ "react-genie-styled-components": "^0.1.1",
+ "react-animations": "1.0.0",
index.tsx
import { ReactGenieAnimations } from "react-genie-styled-components";
const App = () => {
return (
<div>
<ReactGenieAnimations />
<Home />
</div>
);
};
ReactDOM.render(<App />, document.getElementById("root"));
App.tsx
import { Reveal } from 'react-genie';
import { Animation } from "react-genie-styled-components";
<Reveal animation={Animation.SlideInLeft}>
<h1>This title will slide in from the left</h1>
</Reveal>