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

Error using the ART #15143

Closed
iamdurui opened this issue Jul 21, 2017 · 5 comments
Closed

Error using the ART #15143

iamdurui opened this issue Jul 21, 2017 · 5 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@iamdurui
Copy link

  1. react-native -v: 0.46.4
  2. node -v: 8.2.0
  3. npm -v: 5.3.0
  4. yarn --version: 0.27.5

Then, specify:

  • Target Platform:
    Android

  • Development Operating System:
    macOS

Android SDK com.android.tools.build:gradle:2.3.3. buildToolsVersion '25.0.0'

my code is
import React, { Component} from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
ART,
} from 'react-native';

var {
Group,
Shape,
Path,
Surface
} = ART;

export default class Circle extends Component {

render() {
var radius=100;

var path = Path();
path.move(0, 100)
  .arc(100 * 2, 0, 100)
  .arc(-100 * 2, 0, 100);
path.close();

var linePath = Path();
linePath.moveTo(radius,radius);
//linePath.lineTo(radius*2,100);

linePath.lineTo(radius*2-Math.sin(45),100);


return (
  <View style={styles.container}>
    <Surface width={200} height={200}>
      <Group>
        <Shape d={path} stroke="#000000"  strokeWidth={1}/>
        <Shape d={linePath} stroke="#000000"  strokeWidth={1}/>
      </Group>

    </Surface>
  </View>
);

}
}

const styles = StyleSheet.create({
container: {
justifyContent: 'center',
alignItems: 'center',
padding:10,
backgroundColor:'#9b9b9b'
},

});

I hope to get the answer as soon as possible, thanks you!!

@canhnht
Copy link

canhnht commented Oct 4, 2017

Same issue here. I cannot get ART to work in release version of Android and iOS app.

@pull-bot
Copy link

@facebook-github-bot no-template

1 similar comment
@pull-bot
Copy link

@facebook-github-bot no-template

@facebook-github-bot
Copy link
Contributor

Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce the issue being reported. I am going to close this, but feel free to open a new issue with the additional information provided. Thanks! See "What to Expect from Maintainers" to learn more.

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Oct 10, 2017
@facebook-github-bot
Copy link
Contributor

Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce the issue being reported. I am going to close this, but feel free to open a new issue with the additional information provided. Thanks! See "What to Expect from Maintainers" to learn more.

@facebook-github-bot facebook-github-bot added Needs more information Ran Commands One of our bots successfully processed a command. labels Oct 10, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Oct 10, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants