Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined is not an object (evaluating rngesturehandledmodule state #132

Open
kukode opened this issue Nov 20, 2018 · 9 comments
Open

undefined is not an object (evaluating rngesturehandledmodule state #132

kukode opened this issue Nov 20, 2018 · 9 comments

Comments

@kukode
Copy link

kukode commented Nov 20, 2018

my index.js

import {AppRegistry} from 'react-native';
// import App from './App';
// import Intro from './src/component/screen/IntroScreen';
import StackNavigator from './src/navigation/StackNavigator'
import {name as appName} from './app.json';

AppRegistry.registerComponent(appName, () => StackNavigator);

my introscreen.js

import React,{Component} from 'react';

import AppIntro from 'react-native-app-intro';
import { AppRegistry, Alert } from 'react-native';


// const styles = StyleSheet.create({
//     image : {
//         width : 320,
//         height : 320
//     }
// })



export default class IntroScreen extends Component {

    static navigationOptions = {
        header: null
      };
    
    
      onSkipBtnHandle = (index) => {
        Alert.alert('Skip');
        console.log(index);
      }
      doneBtnHandle = () => {
        Alert.alert('Done');
      }
      nextBtnHandle = (index) => {
        Alert.alert('Next');
        console.log(index);
      }
      onSlideChangeHandle = (index, total) => {
        console.log(index, total);
      }
 
    render(){

        const pageArray = [{
            title: 'Page 1',
            description: 'Description 1',
            img: '../../assets/1.jpg',
            imgStyle: {
              height: 80 * 2.5,
              width: 109 * 2.5,
            },
            backgroundColor: '#fa931d',
            fontColor: '#fff',
            level: 10,
          }, {
            title: 'Page 2',
            description: 'Description 2',
            img: require('../../assets/1.jpg'),
            imgStyle: {
              height: 93 * 2.5,
              width: 103 * 2.5,
            },
            backgroundColor: '#a4b602',
            fontColor: '#fff',
            level: 10,
          }];
        
        return(
            <AppIntro
            onNextBtnClick={this.nextBtnHandle}
            onDoneBtnClick={this.doneBtnHandle}
            onSkipBtnClick={this.onSkipBtnHandle}
            onSlideChange={this.onSlideChangeHandle}
            pageArray={pageArray}
        />
            
        )
    }
}
AppRegistry.registerComponent('IntroScreen', () => IntroScreen);

my stacknavigator.js


import React,{Component} from 'react';
import  {createStackNavigator} from 'react-navigation';
import IntroScreen from '../component/screen/IntroScreen';


export default (StackNavigator = createStackNavigator(
    {
      Intro: {
        path: "/",
        screen: IntroScreen
      },
      
    },
    {
      initialRouteName: "Intro",
      navigationOptions: {
        header: null
      }
    }
  ));
@eisenhaus335
Copy link

#104
I am using expo so its might get unreliable and make problem than react native classic

@raminrez
Copy link

same issu

@gaoxuan-haxibiao
Copy link

gaoxuan-haxibiao commented Jan 29, 2019

same issu

me too

@mayuroks
Copy link

Same here

@joaowiciuk
Copy link

same

@klosowsk
Copy link

klosowsk commented Mar 1, 2019

same here

@Richi2293
Copy link

My new repo
#135

@ddiegommachado
Copy link

In the node_modules/react-native-swiper/src/index.js
import React{ StyleSheet, Text, .......
change for:
import { StyleSheet, Text, .......
With me it worked!!

@mstf0ta-app
Copy link

My new repo
#135

if you can fix the parallax Please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants