ReactJS App With Laravel RESTful API Endpoint Part 1

  • [] : [ new new new mangle: false, sourcemap: false }), ],};Webpack is a module bundler that packs all our source code within the public/js/ folder into one single file “bundle.js” which would be referenced from our laravel blade view.Step 2From the routes/web.
  • — Bootstrap Core CSS — link rel=”stylesheet”/headbodydiv id=”app”/divscript div container div id=”app”/div is the actual wrapper for our react components.Also create a JavaScript file under public/js/ folder called app.js,import React from “react”;import ReactDOM from “react-dom”;import {Router, Route, IndexRoute, browserHistory} from “react-router”;import Layout from “.
  • /components/Articles”;const app = Router history={browserHistory} Route path=”/” component={Layout} IndexRoute component={Home}/IndexRoute Route path=”users” component={Users}/Route Route path=”articles” component={Articles}/Route /Route /Router,app);The first three lines are import statements for importing the react packages we would be using in this file.Then we import the Layout component from React from “react”;import { Link } from “react-router”;import…
  • “collapse” : “”;return(div class=”navbar navbar-default navbar-fixed-top” div class=”container” div class=”navbar-header” a href=”#/” class=”navbar-brand”My React App/a button class=”navbar-toggle” type=”button” span class=”sr-only”Toggle Navigation/span span class=”icon-bar”/span span class=”icon-bar”/span span class=”icon-bar”/span /button /div div class={“navbar-collapse ” + navClass} id=”navbar-main” ul class=”nav navbar-nav” li class={homeClass} IndexLink to=”/” /li li class={usersClass} Link to=”users” /li li class={articlesClass}…
  • Alternatively you can run$ webpack –watchThis would always watch for changes within the public/js/ folder and then re-bundle the project instead of always running the npm webpack command every single time we make changes to the project.Then we run$ php artisan serveto start the Laravel development server which would be…

From my previous two articles, I introduced Laravel RESTful API Development, which was a step by step approach of creating a RESTful API endpoint for other apps to connect to it. In this series I…
Continue reading “ReactJS App With Laravel RESTful API Endpoint Part 1”

Getting started with React Native

  • React Native helps you to build apps that no one would ever tell you that you did not use a custom native language such as JAVA or Swift or Objective C. React Native gives you that extra feel.
  • Create React Native App is the easiest way to start building a new React Native application.
  • It allows you to start a project without installing or configuring any tools to build native code – no Xcode or Android Studio installation required.
  • Do a change of directory to the location where you installed the React Native App.
  • NOTE: Create React Native App makes it really easy to run your React Native app on a physical device without setting up a development environment.

Getting to know React Native
Continue reading “Getting started with React Native”

React Native Tutorial: Create Dynamic Animated Lists

  • The answer is, because we only need _deleteItem() to simulate the removal process of an item by firing out the height animation on the actual list row component.
  • When the component is mounted, componentDidMount is fired as well as the animation using the Animated React Native component.
  • class DynamicListRow extends Component { // these values will need to be fixed either within the component or sent through props _defaultHeightValue = 60; _defaultTransition = 500; state = { _rowHeight : new Animated.
  • */ render() { return ( ); } /* For rendering the list rows we will use DynamicListRow component.
  • export default class DynamicList extends Component { /* Default state values */ state = { loading : true, dataSource : new ListView.

Read the full article, click here.


@ModusCreate: “”Would you like to add some visual sugar to your dynamic lists in #ReactNative?” #javascript”


Alex Lazar’s step-by-step guide to help you build your own dynamic animated ListView in React Native.


React Native Tutorial: Create Dynamic Animated Lists

Dynamic Animated Lists in React Native

POSTED: Tutorial to create dynamic animated lists in #ReactNative  #reactjs #javascript

  • The answer is, because we only need _deleteItem() to simulate the removal process of an item by firing out the height animation on the actual list row component.
  • When the component is mounted, componentDidMount is fired as well as the animation using the Animated React Native component.
  • class DynamicListRow extends Component { // these values will need to be fixed either within the component or sent through props _defaultHeightValue = 60; _defaultTransition = 500; state = { _rowHeight : new Animated.
  • */ render() { return ( ); } /* For rendering the list rows we will use DynamicListRow component.
  • export default class DynamicList extends Component { /* Default state values */ state = { loading : true, dataSource : new ListView.

Read the full article, click here.


@ModusCreate: “POSTED: Tutorial to create dynamic animated lists in #ReactNative #reactjs #javascript”


Alex Lazar’s tutorial to walk you through creating your own dynamic animated ListView in React Native.


Dynamic Animated Lists in React Native