Coder Social home page Coder Social logo

svbutko / react-native-template-strong Goto Github PK

View Code? Open in Web Editor NEW
114.0 5.0 14.0 27.48 MB

Quick, opinionated, documented and strong beginning for your next project. Template made with react-native-navigation, TypeScript and Redux.

Home Page: https://svbutko.github.io/react-native-template-strong/

License: MIT License

JavaScript 1.84% Java 0.29% Objective-C 0.77% Ruby 0.63% TypeScript 94.90% CSS 0.40% Objective-C++ 0.46% Kotlin 0.72%
react-native template typescript redux react-native-navigation strong boilerplate starter localization reanimated

react-native-template-strong's Introduction

strong
React Native Template Strong

Quick, opinionated, documented and strong beginning for your next project.

npm-version npm-downloads

GitHub Followers Twitter Follow

Build primarily with

Includes next components:

Testing made with:

Code quality covered with:

And many other day-to-day useful dependencies.

react-native-template-strong's People

Contributors

flogalen avatar ivan-a-1996 avatar svbutko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-native-template-strong's Issues

[BUG] Failed on Mac with RN red screen after start

Describe the bug

E  ./index.js 

error: node_modules/react-native-gesture-handler/src/handlers/gestures/pinchGesture.ts: /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/react-native-gesture-handler/src/handlers/gestures/pinchGesture.ts: Cannot find module '@babel/plugin-transform-shorthand-properties'
Require stack:
- /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/@babel/core/lib/config/files/plugins.js
- /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/@babel/core/lib/config/files/index.js
- /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/@babel/core/lib/index.js
- /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/react-native-reanimated/plugin.js
- /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/metro-react-native-babel-transformer/node_modules/@babel/core/lib/config/files/module-types.js
- /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/metro-react-native-babel-transformer/node_modules/@babel/core/lib/config/files/configuration.js
- /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/metro-react-native-babel-transformer/node_modules/@babel/core/lib/config/files/index.js
- /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/metro-react-native-babel-transformer/node_modules/@babel/core/lib/index.js
- /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/metro-react-native-babel-transformer/src/index.js
- /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/metro-transform-worker/src/index.js
- /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/metro/src/DeltaBundler/Worker.js
- /Users/sytolk/IdeaProjects/MyTemplateApp/MyTemplateApp/node_modules/metro/node_modules/jest-worker/build/workers/processChild.js

To Reproduce
Steps to reproduce the behavior:

  1. npx react-native init MyApp --template react-native-template-strong
  2. npm install --force
  3. npx pod-install
  4. start-reset-cache
  5. npm run-script ios:run

Desktop (please complete the following information):

  • OS:
    ProductName: macOS
    ProductVersion: 12.1
    BuildVersion: 21C52
  • Template Version [e.g. 1.0.0] latest

[QUESTION] Unexpectedly getting this error

Unexpectedly getting this error, I also tried remove cache and reinstall node modules but nothing happened:
Error
error: src\navigation\navigators\mainStackNavigator.ts: [BABEL] C:\Users\CYRUS\Documents\work\ux-labs\MyApp\src\navigation\navigators\mainStackNavigator.ts: Unexpected token ',' (While processing: "C:\\Users\\CYRUS\\Documents\\work\\ux-labs\\MyApp\\node_modules\\nativewind\\babel.js")

mainStackNavigator.ts File:
`import {Navigation} from "react-native-navigation";
import {Pages} from "../pages";
import {reduxProvider} from "../../core/store/store";
import {PlatformColorsAndroid, PlatformColorsIOS} from "../../core/theme/colors";
import {platformNativeColor} from "../../common/helpers/colorHelpers";
import SplashScreen from "../../modules/screens/SplashScreen";
import AuthScreen from "../../modules/screens/AuthScreen";
import SignInScreen from "../../modules/screens/SignInScreen";
import SignUpScreen from "../../modules/screens/SignupScreen";
import TwoFAScreen from "../../modules/screens/TwoFAScreen";
import VerifySMSScreen from "../../modules/screens/VerifySMSScreen";
import SignupSuccessScreen from "../../modules/screens/SignupSuccessScreen";

export function setDefaultOptions() {
Navigation.setDefaultOptions({
animations: {
setRoot: {
waitForRender: true,
},
setStackRoot: {
waitForRender: true,
},
},
layout: {
componentBackgroundColor: platformNativeColor(PlatformColorsIOS.secondarySystemBackground, PlatformColorsAndroid.background),
},
statusBar: {
backgroundColor: platformNativeColor(undefined, PlatformColorsAndroid.statusbar),
visible: true,
},
});
}

export function registerComponents() {
Navigation.registerComponent(Pages.splash.name, () => reduxProvider(SplashScreen));
Navigation.registerComponent(Pages.auth.name, () => reduxProvider(AuthScreen));
Navigation.registerComponent(Pages.signIn.name, () => reduxProvider(SignInScreen));
Navigation.registerComponent(Pages.twoFA.name, () => reduxProvider(TwoFAScreen));
Navigation.registerComponent(Pages.signUp.name, () => reduxProvider(SignUpScreen));
Navigation.registerComponent(Pages.verifySMS.name, () => reduxProvider(VerifySMSScreen));
Navigation.registerComponent(Pages.signUpSuccess.name, () => reduxProvider(SignupSuccessScreen));
}
`

[BUG] won't run if you have yarn installed

Describe the bug
Why lock yarn out? There should be no need to
The problem ends up that if you do have installed you get the error about using rpm instead even when you run with npm/npx

To Reproduce
Steps to reproduce the behavior:
Have yarn installed, try to run the app

Expected behavior
should work

Proposed solutionr
Remove the yarn from the engines key on package.json

[BUG] PlatformColor doesn't seem to be working correctly with `Views` & `Text` but works perfectly with the navigation ?

PlatformColor doesn't seem to be working correctly on android as it does on ios.
it requires app reload.

pc-template.mp4

To Reproduce

  • add this code & toggle dark/light mode in your app
      <Text
        style={{
          color: platformNativeColor(PlatformColorsIOS.label, PlatformColorsAndroid.primaryText),
          fontSize: 30,
        }}
      >
        here we goo
      </Text>

Expected behavior
android should work, same as IOS.

Screenshots
check the video above.

Additional context
this could be & most likely is an issue with react native it self.
but I'm wondering why does it work perfectly with navigation constructs and not with react native's elements.

[QUESTION] React-native-paper Provider

I'm getting this warning:

Require cycle: node_modules\react-native-paper\src\components\Appbar\Appbar.tsx -> node_modules\react-native-paper\src\components\Appbar\AppbarHeader.tsx -> node_modules\react-native-paper\src\components\Appbar\Appbar.tsx

I think it's provider issue, but don't know how to wrap the screens in this provider.

Error while run npm install

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react-native
npm ERR! react-native@"0.66.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.64" from [email protected]
npm ERR! node_modules/react-native-localization
npm ERR! react-native-localization@"2.1.7" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

[FEATURE] Move away from moment.js

Is your feature request related to a problem? Please describe.
Moment.js is now in legacy mode. The maintainers recommend we move to other projects.

Describe the solution you'd like
Move from Moment.js to Day.js

[QUESTION]

hi @svbutko , amazing work you have done, can you please create an example project to show how to use all the features.
and when will you complete the pending issues you have opened. thanks

[BUG] AppEnvironment does not exist

Describe the bug
AppEnvironment from react-native-config does not exist

To Reproduce
Steps to reproduce the behavior:

  1. import {AppEnvironment} from "../types/react-native-config.types";
  2. if (AppEnvironment.development == Config.ENVIRONMENT) {
  3. See error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.