Skip to content

How to start a bare React Native Typescript + Video project #20

Answered by LunatiqueCoder
esegebart asked this question in Q&A
Discussion options

You must be logged in to vote

@esegebart I just tried with a bare React Native typescript template and it seems to be working? You can follow these steps:

  1. Make sure you have the environment setup for React Native Cli (not Expo!): https://reactnative.dev/docs/environment-setup

  1. Run npx react-native init TSTemplateInit --template react-native-template-typescript
  2. Run cd TSTemplateInit && yarn add react-native-video react-native-media-console
  3. Run yarn add --dev @types/react-native-video
  4. Run cd ios && pod install && cd ..
  5. Run yarn start
  6. Run yarn ios

Use the following code snippet:

import React, {useRef, useState} from 'react';

import {View, Dimensions, StyleSheet} from 'react-native';

import VideoPlayer from 'react-n…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@esegebart
Comment options

@esegebart
Comment options

@LunatiqueCoder
Comment options

@esegebart
Comment options

Answer selected by esegebart
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #19 on September 13, 2022 16:11.