1.0.91 • Published 8 months ago

vr-react-sdk v1.0.91

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

veeroll react js package

Installation

this package is build on react js with tailwind and zustand for state management

1. To install the package and its peer dependencies, run the following commands:

npm i vr-react-sdk

add this to your .env

if you are using next js add this to your .env
NEXT_PUBLIC_VEEROLL_API_URL=https://dev-api.veeroll.com/api/
NEXT_PUBLIC_VEEROLL_API_KEY=test
NEXT_PUBLIC_VEEROLL_SECRET=test

and if not
VITE_VEEROLL_API_URL=https://dev-api.veeroll.com/api/
VEEROLL_API_KEY=test
VEEROLL_SECRET=test

2. To use veeroll package, import the Video Creator component.

pass a props to the redirect link /video/:id, we will redirect on this route after a successfull call of creating a video

import React from "react";

import { CreateVideo } from "vr-react-sdk";
import 'vr-react-sdk/dist/style.css';
const Home = () => {
  return (
    <div>
    <CreateVideo redirectLink={'video'}/>
    </div>
  );
};

export default Home;

if you are using next.js , inclue a use client on top of your page.

pass a props to the redirect link /video/:id, we will redirect on this route after a successfull call of creating a video

"use client"
import React from "react";

import { CreateVideo } from "vr-react-sdk";
import 'vr-react-sdk/dist/style.css';
const Home = () => {
  return (
    <div>
      <CreateVideo redirectLink={'video'}/>
    </div>
  );
};

export default Home;

for next js if you are using typescript, add a new file to your folder types, file named vr-react-sdk.d.ts

declare module 'vr-react-sdk' {
    export const CreateVideo: any;
    export const VideoDetails: any;
    // Add other exports here as needed
  }
  
1.0.91

8 months ago

1.0.84

8 months ago

1.0.83

8 months ago

1.0.88

8 months ago

1.0.87

8 months ago

1.0.86

8 months ago

1.0.85

8 months ago

1.0.89

8 months ago

1.0.90

8 months ago

1.0.77

8 months ago

1.0.76

8 months ago

1.0.79

8 months ago

1.0.78

8 months ago

1.0.80

8 months ago

1.0.82

8 months ago

1.0.81

8 months ago

1.0.75

8 months ago

1.0.74

8 months ago

1.0.73

8 months ago

1.0.72

8 months ago

1.0.71

8 months ago

1.0.70

8 months ago

1.0.69

8 months ago

1.0.68

8 months ago

1.0.67

8 months ago

1.0.66

8 months ago

1.0.65

8 months ago

1.0.64

8 months ago

1.0.63

8 months ago

1.0.62

8 months ago

1.0.61

8 months ago

1.0.60

8 months ago

1.0.59

8 months ago

1.0.58

8 months ago

1.0.57

8 months ago

1.0.56

8 months ago

1.0.55

8 months ago

1.0.54

8 months ago

1.0.53

8 months ago

1.0.52

8 months ago

1.0.51

8 months ago

1.0.50

8 months ago

1.0.49

8 months ago

1.0.48

8 months ago

1.0.47

8 months ago

1.0.46

8 months ago

1.0.45

8 months ago

1.0.44

8 months ago

1.0.43

8 months ago

1.0.41

8 months ago

1.0.40

8 months ago

1.0.39

8 months ago

1.0.38

8 months ago

1.0.37

8 months ago

1.0.36

8 months ago

1.0.35

8 months ago

1.0.34

8 months ago

1.0.33

8 months ago

1.0.32

8 months ago

1.0.31

8 months ago

1.0.30

8 months ago

1.0.29

8 months ago

1.0.28

8 months ago

1.0.27

8 months ago

1.0.26

8 months ago

1.0.25

9 months ago

1.0.24

9 months ago

1.0.23

9 months ago

1.0.22

9 months ago

1.0.21

9 months ago

1.0.20

9 months ago

1.0.19

9 months ago

1.0.18

9 months ago

1.0.17

9 months ago

1.0.16

9 months ago

1.0.15

9 months ago

1.0.14

9 months ago

1.0.13

9 months ago

1.0.12

9 months ago

1.0.10

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago